Package org.bouncycastle.operator
Class BufferingContentSigner
- java.lang.Object
 - 
- org.bouncycastle.operator.BufferingContentSigner
 
 
- 
- All Implemented Interfaces:
 ContentSigner
public class BufferingContentSigner extends java.lang.Object implements ContentSigner
A class that explicitly buffers the data to be signed, sending it in one block when ready for signing. 
- 
- 
Constructor Summary
Constructors Constructor Description BufferingContentSigner(ContentSigner contentSigner)Base constructor.BufferingContentSigner(ContentSigner contentSigner, int bufferSize)Base constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier()Return the algorithm identifier supported by this signer.java.io.OutputStreamgetOutputStream()Return the buffering stream.byte[]getSignature()Generate signature from internally buffered data. 
 - 
 
- 
- 
Constructor Detail
- 
BufferingContentSigner
public BufferingContentSigner(ContentSigner contentSigner)
Base constructor.- Parameters:
 contentSigner- the content signer to be wrapped.
 
- 
BufferingContentSigner
public BufferingContentSigner(ContentSigner contentSigner, int bufferSize)
Base constructor.- Parameters:
 contentSigner- the content signer to be wrapped.bufferSize- the size of the internal buffer to use.
 
 - 
 
- 
Method Detail
- 
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
Return the algorithm identifier supported by this signer.- Specified by:
 getAlgorithmIdentifierin interfaceContentSigner- Returns:
 - algorithm identifier for the signature generated.
 
 
- 
getOutputStream
public java.io.OutputStream getOutputStream()
Return the buffering stream.- Specified by:
 getOutputStreamin interfaceContentSigner- Returns:
 - the output stream used to accumulate the data.
 
 
- 
getSignature
public byte[] getSignature()
Generate signature from internally buffered data.- Specified by:
 getSignaturein interfaceContentSigner- Returns:
 - the signature calculated from the bytes written to the buffering stream.
 
 
 - 
 
 -