Package org.bouncycastle.operator
Class NoSignatureContentSigner
- java.lang.Object
-
- org.bouncycastle.operator.NoSignatureContentSigner
-
- All Implemented Interfaces:
ContentSigner
public class NoSignatureContentSigner extends java.lang.Object implements ContentSigner
ContentSigner for "Unsigned X.509 Certificates"
-
-
Constructor Summary
Constructors Constructor Description NoSignatureContentSigner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.asn1.x509.AlgorithmIdentifiergetAlgorithmIdentifier()Return the algorithm identifier describing the signature algorithm and parameters this signer generates.java.io.OutputStreamgetOutputStream()Returns a stream that will accept data for the purpose of calculating a signature.byte[]getSignature()Returns a signature based on the current data written to the stream, since the start or the last call to getSignature().
-
-
-
Method Detail
-
getAlgorithmIdentifier
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
Description copied from interface:ContentSignerReturn the algorithm identifier describing the signature algorithm and parameters this signer generates.- Specified by:
getAlgorithmIdentifierin interfaceContentSigner- Returns:
- algorithm oid and parameters.
-
getOutputStream
public java.io.OutputStream getOutputStream()
Description copied from interface:ContentSignerReturns 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.- Specified by:
getOutputStreamin interfaceContentSigner- Returns:
- an OutputStream
-
getSignature
public byte[] getSignature()
Description copied from interface:ContentSignerReturns a signature based on the current data written to the stream, since the start or the last call to getSignature().- Specified by:
getSignaturein interfaceContentSigner- Returns:
- bytes representing the signature.
-
-