Top Description Methods
org.bouncycastle.crypto

public Interface OutputSigner<T extends Parameters>

Known Direct Subinterfaces
org.bouncycastle.crypto.OutputSignerUsingSecureRandom, org.bouncycastle.crypto.OutputSignerWithMessageRecovery
Known Direct Implementers
org.bouncycastle.crypto.fips.FipsOutputSigner
Type Parameters
<T>
the parameters type for the signer.

Base interface for an output signer.

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

the signer's parameters.
getParameters
()

Return the parameters for this output signer.

public byte[]

Returns:

a signature.
getSignature
()

Return the signature calculated on what has been written to the calculator's output stream.

public int

Returns:

the number of bytes output.
getSignature
(byte[]
output array to write the signature to.
output
,
int
offset to start writing the signature at.
off
)

Output the signature value for what has been written to the signer's output stream.

public UpdateOutputStream

Returns:

an UpdateOutputStream
getSigningStream
()

Returns a stream that will accept data for the purpose of calculating a signature.

Method Detail

getParametersback to summary
public T getParameters()

Return the parameters for this output signer.

Returns:T

the signer's parameters.

getSignatureback to summary
public byte[] getSignature() throws PlainInputProcessingException

Return the signature calculated on what has been written to the calculator's output stream.

Returns:byte[]

a signature.

Exceptions
PlainInputProcessingException:
if the input provided cannot be processed.
getSignatureback to summary
public int getSignature(byte[] output, int off) throws PlainInputProcessingException

Output the signature value for what has been written to the signer's output stream.

Parameters
output:byte[]

output array to write the signature to.

off:int

offset to start writing the signature at.

Returns:int

the number of bytes output.

Exceptions
PlainInputProcessingException:
if the input provided cannot be processed.
getSigningStreamback to summary
public UpdateOutputStream getSigningStream()

Returns a stream that will accept data for the purpose of calculating a signature. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns:UpdateOutputStream

an UpdateOutputStream