Top Description Methods
org.bouncycastle.operator

public Interface ContentSigner

Known Direct Implementers
org.bouncycastle.operator.BufferingContentSigner
Imports
java.io.OutputStream, org.bouncycastle.asn1.x509.AlgorithmIdentifier

General interface for an operator that is able to create a signature from a stream of output.

Method Summary

Modifier and TypeMethod and Description
public AlgorithmIdentifier

Returns:

algorithm oid and parameters.
getAlgorithmIdentifier
()

Return the algorithm identifier describing the signature algorithm and parameters this signer generates.

public OutputStream

Returns:

an OutputStream
getOutputStream
()

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

public byte[]

Returns:

bytes representing the signature.
getSignature
()

Returns a signature based on the current data written to the stream, since the start or the last call to getSignature().

Method Detail

getAlgorithmIdentifierback to summary
public AlgorithmIdentifier getAlgorithmIdentifier()

Return the algorithm identifier describing the signature algorithm and parameters this signer generates.

Returns:AlgorithmIdentifier

algorithm oid and parameters.

getOutputStreamback to summary
public OutputStream getOutputStream()

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:OutputStream

an OutputStream

getSignatureback to summary
public byte[] getSignature()

Returns a signature based on the current data written to the stream, since the start or the last call to getSignature().

Returns:byte[]

bytes representing the signature.