public class BcITSContentSigner extends java.lang.Object implements ITSContentSigner
Constructor and Description |
---|
BcITSContentSigner(org.bouncycastle.crypto.params.ECPrivateKeyParameters privKey)
Constructor for self-signing.
|
BcITSContentSigner(org.bouncycastle.crypto.params.ECPrivateKeyParameters privKey,
ITSCertificate signerCert) |
Modifier and Type | Method and Description |
---|---|
ITSCertificate |
getAssociatedCertificate() |
byte[] |
getAssociatedCertificateDigest() |
org.bouncycastle.asn1.ASN1ObjectIdentifier |
getCurveID() |
org.bouncycastle.asn1.x509.AlgorithmIdentifier |
getDigestAlgorithm() |
java.io.OutputStream |
getOutputStream()
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().
|
boolean |
isForSelfSigning()
Return true if this ContentSigner is for self signing.
|
public BcITSContentSigner(org.bouncycastle.crypto.params.ECPrivateKeyParameters privKey)
privKey
- public BcITSContentSigner(org.bouncycastle.crypto.params.ECPrivateKeyParameters privKey, ITSCertificate signerCert)
public ITSCertificate getAssociatedCertificate()
getAssociatedCertificate
in interface ITSContentSigner
public byte[] getAssociatedCertificateDigest()
getAssociatedCertificateDigest
in interface ITSContentSigner
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
getDigestAlgorithm
in interface ITSContentSigner
public java.io.OutputStream getOutputStream()
ITSContentSigner
getOutputStream
in interface ITSContentSigner
public boolean isForSelfSigning()
ITSContentSigner
isForSelfSigning
in interface ITSContentSigner
public org.bouncycastle.asn1.ASN1ObjectIdentifier getCurveID()
getCurveID
in interface ITSContentSigner
public byte[] getSignature()
ITSContentSigner
getSignature
in interface ITSContentSigner