Class CustomContentSigner

  • All Implemented Interfaces:
    org.bouncycastle.operator.ContentSigner

    public class CustomContentSigner
    extends Object
    implements org.bouncycastle.operator.ContentSigner
    ContentSigner using a provided pre-computed signature
    • Constructor Detail

      • CustomContentSigner

        public CustomContentSigner​(String algorithmIdentifier)
        The default constructor for the PreComputedContentSigner.
        Parameters:
        algorithmIdentifier -
      • CustomContentSigner

        public CustomContentSigner​(String algorithmIdentifier,
                                   byte[] preComputedSignature)
        This is the constructor for the PreComputedContentSigner using the real value of the signature.
        Parameters:
        algorithmIdentifier - the JCE algorithm identifier
        preComputedSignature - the preComputedSignature to set
    • Method Detail

      • getAlgorithmIdentifier

        public org.bouncycastle.asn1.x509.AlgorithmIdentifier getAlgorithmIdentifier()
        Specified by:
        getAlgorithmIdentifier in interface org.bouncycastle.operator.ContentSigner
      • getOutputStream

        public ByteArrayOutputStream getOutputStream()
        Specified by:
        getOutputStream in interface org.bouncycastle.operator.ContentSigner
      • getSignature

        public byte[] getSignature()
        Specified by:
        getSignature in interface org.bouncycastle.operator.ContentSigner