Class CustomContentSignerBuilder
java.lang.Object
eu.europa.esig.dss.cms.operator.CustomContentSignerBuilder
This class is used to create an instance of
eu.europa.esig.dss.cades.signature.CustomContentSigner-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(SignatureAlgorithm signatureAlgorithm) Builds aCustomContentSignerfor the CMS signature creation.build(SignatureAlgorithm signatureAlgorithm, SignatureValue signatureValue) Builds aCustomContentSignerfor the CMS signature creation using the given SignatureValue.
-
Constructor Details
-
CustomContentSignerBuilder
public CustomContentSignerBuilder()Default constructor
-
-
Method Details
-
build
Builds aCustomContentSignerfor the CMS signature creation. This method creates a CustomContentSigner with an absent SignatureValue. Method is normally used for message-digest computation.- Parameters:
signatureAlgorithm-SignatureAlgorithmto be used on signature creation- Returns:
SignerInfoGenerator
-
build
public CustomContentSigner build(SignatureAlgorithm signatureAlgorithm, SignatureValue signatureValue) Builds aCustomContentSignerfor the CMS signature creation using the given SignatureValue.- Parameters:
signatureAlgorithm-SignatureAlgorithmto be used on signature creationsignatureValue-SignatureValueto be embedded within the CMS- Returns:
SignerInfoGenerator
-