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