public class BufferingContentSigner extends Object implements ContentSigner
Constructor and Description |
---|
BufferingContentSigner(ContentSigner contentSigner)
Base constructor.
|
BufferingContentSigner(ContentSigner contentSigner,
int bufferSize)
Base constructor.
|
Modifier and Type | Method and Description |
---|---|
AlgorithmIdentifier |
getAlgorithmIdentifier()
Return the algorithm identifier supported by this signer.
|
OutputStream |
getOutputStream()
Return the buffering stream.
|
byte[] |
getSignature()
Generate signature from internally buffered data.
|
public BufferingContentSigner(ContentSigner contentSigner)
contentSigner
- the content signer to be wrapped.public BufferingContentSigner(ContentSigner contentSigner, int bufferSize)
contentSigner
- the content signer to be wrapped.bufferSize
- the size of the internal buffer to use.public AlgorithmIdentifier getAlgorithmIdentifier()
getAlgorithmIdentifier
in interface ContentSigner
public OutputStream getOutputStream()
getOutputStream
in interface ContentSigner
public byte[] getSignature()
getSignature
in interface ContentSigner
Copyright © 2021 BouncyCastle.org. All rights reserved.