Class CMSSignedAttributeTableGenerator

java.lang.Object
eu.europa.esig.dss.cms.CMSSignedAttributeTableGenerator
All Implemented Interfaces:
org.bouncycastle.cms.CMSAttributeTableGenerator

public class CMSSignedAttributeTableGenerator extends Object implements org.bouncycastle.cms.CMSAttributeTableGenerator
CMS attributes table generator.

This class replicates a org.bouncycastle.cms.DefaultAuthenticatedAttributeTableGenerator, but without the signing-time attribute, that should be provided externally. The class is used on both CMS for CAdES and CMS for PAdES generations.

  • Field Summary

    Fields inherited from interface org.bouncycastle.cms.CMSAttributeTableGenerator

    CONTENT_TYPE, DIGEST, DIGEST_ALGORITHM_IDENTIFIER, MAC_ALGORITHM_IDENTIFIER, SIGNATURE, SIGNATURE_ALGORITHM_IDENTIFIER
  • Constructor Summary

    Constructors
    Constructor
    Description
    CMSSignedAttributeTableGenerator(org.bouncycastle.asn1.cms.AttributeTable attributeTable)
    Initialise with some extra attributes or overrides.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Hashtable
    Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, messageDigest, and CMS algorithm protection.
    org.bouncycastle.asn1.cms.AttributeTable
    getAttributes(Map parameters)
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CMSSignedAttributeTableGenerator

      public CMSSignedAttributeTableGenerator(org.bouncycastle.asn1.cms.AttributeTable attributeTable)
      Initialise with some extra attributes or overrides.
      Parameters:
      attributeTable - initial attribute table to use
  • Method Details

    • getAttributes

      public org.bouncycastle.asn1.cms.AttributeTable getAttributes(Map parameters) throws org.bouncycastle.cms.CMSAttributeTableGenerationException
      Specified by:
      getAttributes in interface org.bouncycastle.cms.CMSAttributeTableGenerator
      Throws:
      org.bouncycastle.cms.CMSAttributeTableGenerationException
    • createStandardAttributeTable

      protected Hashtable createStandardAttributeTable(Map parameters)
      Create a standard attribute table from the passed in parameters - this will normally include contentType, signingTime, messageDigest, and CMS algorithm protection. If the constructor using an AttributeTable was used, entries in it for contentType, signingTime, and messageDigest will override the generated ones.
      Parameters:
      parameters - source parameters for table generation.
      Returns:
      a filled in Hashtable of attributes.