Class CMSForPAdESBuilderHelper
java.lang.Object
eu.europa.esig.dss.cades.signature.CMSForCAdESBuilderHelper
eu.europa.esig.dss.pades.signature.CMSForPAdESBuilderHelper
Creates a new CMS for a PAdES signature creation
-
Field Summary
Fields inherited from class CMSForCAdESBuilderHelper
contentSigner, documentToSign, signatureParameters -
Constructor Summary
ConstructorsConstructorDescriptionCMSForPAdESBuilderHelper(DSSMessageDigest messageDigest, PAdESSignatureParameters signatureParameters, org.bouncycastle.operator.ContentSigner contentSigner) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected CAdESLevelBaselineBInstantiates a newCAdESLevelBaselineBprotected booleanGets whether the signed data shall be encapsulatedsetIncludeUnsignedAttributes(boolean includeUnsignedAttributes) Sets whether the unsigned attributes should be included into the generated SignerInfoGeneratorsetOriginalCMS(CMS originalCMS) Sets original CMS, when availablesetTrustedCertificateSource(CertificateSource trustedCertificateSource) Sets trusted certificate source
-
Constructor Details
-
CMSForPAdESBuilderHelper
public CMSForPAdESBuilderHelper(DSSMessageDigest messageDigest, PAdESSignatureParameters signatureParameters, org.bouncycastle.operator.ContentSigner contentSigner) Default constructor- Parameters:
messageDigest-DSSMessageDigestsignatureParameters-PAdESSignatureParameterscontentSigner-CustomContentSigner
-
-
Method Details
-
setOriginalCMS
Description copied from class:CMSForCAdESBuilderHelperSets original CMS, when available- Overrides:
setOriginalCMSin classCMSForCAdESBuilderHelper- Parameters:
originalCMS-CMS- Returns:
- this
CMSForCAdESBuilderHelper
-
setTrustedCertificateSource
public CMSForPAdESBuilderHelper setTrustedCertificateSource(CertificateSource trustedCertificateSource) Description copied from class:CMSForCAdESBuilderHelperSets trusted certificate source- Overrides:
setTrustedCertificateSourcein classCMSForCAdESBuilderHelper- Parameters:
trustedCertificateSource-CertificateSource- Returns:
- this
CMSForCAdESBuilderHelper
-
setIncludeUnsignedAttributes
Description copied from class:CMSForCAdESBuilderHelperSets whether the unsigned attributes should be included into the generated SignerInfoGenerator- Overrides:
setIncludeUnsignedAttributesin classCMSForCAdESBuilderHelper- Parameters:
includeUnsignedAttributes- whether the unsigned attributes should be included- Returns:
- this
CMSForCAdESBuilderHelper
-
initCAdESProfile
Description copied from class:CMSForCAdESBuilderHelperInstantiates a newCAdESLevelBaselineB- Overrides:
initCAdESProfilein classCMSForCAdESBuilderHelper- Returns:
CAdESLevelBaselineB
-
isEncapsulateSignerData
protected boolean isEncapsulateSignerData()Description copied from class:CMSForCAdESBuilderHelperGets whether the signed data shall be encapsulated- Overrides:
isEncapsulateSignerDatain classCMSForCAdESBuilderHelper- Returns:
- TRUE if the signed data shall be encapsulated, FALSE otherwise
-