Class CAdESLevelBaselineB
java.lang.Object
eu.europa.esig.dss.cades.signature.CAdESLevelBaselineB
This class holds the CAdES-B signature profile; it supports the inclusion of the mandatory signed
id_aa_ets_sigPolicyId attribute as specified in ETSI TS 101 733 V1.8.1, clause 5.8.1.
-
Constructor Summary
ConstructorDescriptionThe default constructor for CAdESLevelBaselineB.CAdESLevelBaselineB
(boolean padesUsage) The constructor for CAdESLevelBaselineB with apadesUsage
indicationCAdESLevelBaselineB
(DSSDocument documentToSign) The constructor for CAdESLevelBaselineB with adocumentToSign
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.cms.AttributeTable
getSignedAttributes
(CAdESSignatureParameters parameters) Generates and returns a Signed Attributes Tableorg.bouncycastle.asn1.cms.AttributeTable
Return the table of unsigned properties.
-
Constructor Details
-
CAdESLevelBaselineB
public CAdESLevelBaselineB()The default constructor for CAdESLevelBaselineB. -
CAdESLevelBaselineB
public CAdESLevelBaselineB(boolean padesUsage) The constructor for CAdESLevelBaselineB with apadesUsage
indication- Parameters:
padesUsage
- defines if the CMS signature shall be created a PAdES
-
CAdESLevelBaselineB
The constructor for CAdESLevelBaselineB with adocumentToSign
- Parameters:
documentToSign
-DSSDocument
document to be signed
-
-
Method Details
-
getUnsignedAttributes
public org.bouncycastle.asn1.cms.AttributeTable getUnsignedAttributes()Return the table of unsigned properties.- Returns:
AttributeTable
-
getSignedAttributes
public org.bouncycastle.asn1.cms.AttributeTable getSignedAttributes(CAdESSignatureParameters parameters) Generates and returns a Signed Attributes Table- Parameters:
parameters
-CAdESSignatureParameters
- Returns:
AttributeTable
representing the signed attributes
-