Class CustomContentSignerBuilder

java.lang.Object
eu.europa.esig.dss.cms.operator.CustomContentSignerBuilder

public class CustomContentSignerBuilder extends Object
This class is used to create an instance of eu.europa.esig.dss.cades.signature.CustomContentSigner
  • Constructor Details

    • CustomContentSignerBuilder

      public CustomContentSignerBuilder()
      Default constructor
  • Method Details

    • build

      public CustomContentSigner build(SignatureAlgorithm signatureAlgorithm)
      Builds a CustomContentSigner for the CMS signature creation. This method creates a CustomContentSigner with an absent SignatureValue. Method is normally used for message-digest computation.
      Parameters:
      signatureAlgorithm - SignatureAlgorithm to be used on signature creation
      Returns:
      SignerInfoGenerator
    • build

      public CustomContentSigner build(SignatureAlgorithm signatureAlgorithm, SignatureValue signatureValue)
      Builds a CustomContentSigner for the CMS signature creation using the given SignatureValue.
      Parameters:
      signatureAlgorithm - SignatureAlgorithm to be used on signature creation
      signatureValue - SignatureValue to be embedded within the CMS
      Returns:
      SignerInfoGenerator