Class BcITSContentSigner

java.lang.Object
org.bouncycastle.its.bc.BcITSContentSigner
All Implemented Interfaces:
ITSContentSigner

public class BcITSContentSigner extends Object implements ITSContentSigner
  • Constructor Details

    • BcITSContentSigner

      public BcITSContentSigner(org.bouncycastle.crypto.params.ECPrivateKeyParameters privKey)
      Constructor for self-signing.
      Parameters:
      privKey -
    • BcITSContentSigner

      public BcITSContentSigner(org.bouncycastle.crypto.params.ECPrivateKeyParameters privKey, ITSCertificate signerCert)
  • Method Details

    • getAssociatedCertificate

      public ITSCertificate getAssociatedCertificate()
      Specified by:
      getAssociatedCertificate in interface ITSContentSigner
    • getAssociatedCertificateDigest

      public byte[] getAssociatedCertificateDigest()
      Specified by:
      getAssociatedCertificateDigest in interface ITSContentSigner
    • getDigestAlgorithm

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithm()
      Specified by:
      getDigestAlgorithm in interface ITSContentSigner
    • getOutputStream

      public OutputStream getOutputStream()
      Description copied from interface: ITSContentSigner
      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 interface ITSContentSigner
      Returns:
      an OutputStream
    • isForSelfSigning

      public boolean isForSelfSigning()
      Description copied from interface: ITSContentSigner
      Return true if this ContentSigner is for self signing. False otherwise.
      Specified by:
      isForSelfSigning in interface ITSContentSigner
      Returns:
      true if for self-signing.
    • getCurveID

      public org.bouncycastle.asn1.ASN1ObjectIdentifier getCurveID()
      Specified by:
      getCurveID in interface ITSContentSigner
    • getSignature

      public byte[] getSignature()
      Description copied from interface: ITSContentSigner
      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 interface ITSContentSigner
      Returns:
      bytes representing the signature.