public interface

ContentSigner

org.bouncycastle.operator.ContentSigner

Summary

Public Methods
abstract AlgorithmIdentifier getAlgorithmIdentifier()
abstract OutputStream getOutputStream()
Returns a stream that will accept data for the purpose of calculating a signature.
abstract byte[] getSignature()
Returns a signature based on the current data written to the stream, since the start or the last call to getSignature().

Public Methods

public abstract AlgorithmIdentifier getAlgorithmIdentifier ()

public abstract 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
  • an OutputStream

public abstract byte[] getSignature ()

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

Returns
  • bytes representing the signature.