Class CustomContentSigner

java.lang.Object
eu.europa.esig.dss.cades.signature.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 Details

    • CustomContentSigner

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

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

    • 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