Class CAdESLevelBaselineB

java.lang.Object
eu.europa.esig.dss.cades.signature.CAdESLevelBaselineB

public class CAdESLevelBaselineB extends Object
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 Details

    • CAdESLevelBaselineB

      public CAdESLevelBaselineB()
      The default constructor for CAdESLevelBaselineB.
    • CAdESLevelBaselineB

      public CAdESLevelBaselineB(boolean padesUsage)
      The constructor for CAdESLevelBaselineB with a padesUsage indication
      Parameters:
      padesUsage - defines if the CMS signature shall be created a PAdES
    • CAdESLevelBaselineB

      public CAdESLevelBaselineB(DSSDocument documentToSign)
      The constructor for CAdESLevelBaselineB with a documentToSign
      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