Class JcaITSContentSigner
java.lang.Object
org.bouncycastle.its.jcajce.JcaITSContentSigner
- All Implemented Interfaces:
ITSContentSigner
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbyte[]org.bouncycastle.asn1.ASN1ObjectIdentifierorg.bouncycastle.asn1.x509.AlgorithmIdentifierReturns 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().booleanReturn true if this ContentSigner is for self signing.
-
Method Details
-
getOutputStream
Description copied from interface:ITSContentSignerReturns 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 interfaceITSContentSigner- Returns:
- an OutputStream
-
getSignature
public byte[] getSignature()Description copied from interface:ITSContentSignerReturns a signature based on the current data written to the stream, since the start or the last call to getSignature().- Specified by:
getSignaturein interfaceITSContentSigner- Returns:
- bytes representing the signature.
-
getAssociatedCertificate
- Specified by:
getAssociatedCertificatein interfaceITSContentSigner
-
getAssociatedCertificateDigest
public byte[] getAssociatedCertificateDigest()- Specified by:
getAssociatedCertificateDigestin interfaceITSContentSigner
-
getDigestAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()- Specified by:
getDigestAlgorithmin interfaceITSContentSigner
-
getCurveID
public org.bouncycastle.asn1.ASN1ObjectIdentifier getCurveID()- Specified by:
getCurveIDin interfaceITSContentSigner
-
isForSelfSigning
public boolean isForSelfSigning()Description copied from interface:ITSContentSignerReturn true if this ContentSigner is for self signing. False otherwise.- Specified by:
isForSelfSigningin interfaceITSContentSigner- Returns:
- true if for self-signing.
-