Class PadesSignedAttributeTableGenerator

java.lang.Object
org.bouncycastle.cms.DefaultSignedAttributeTableGenerator
br.ufsc.labsec.signature.tsa.PadesSignedAttributeTableGenerator
All Implemented Interfaces:
org.bouncycastle.cms.CMSAttributeTableGenerator

public class PadesSignedAttributeTableGenerator
extends org.bouncycastle.cms.DefaultSignedAttributeTableGenerator
De acordo com o DOC-ICP-15.03 o atributo signingTime é proibido para assinaturas do tipo PAdES. Dessa forma, é definida uma tabela de atributos específica para esse tipo de assinatura, removendo o atributo
  • 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
    PadesSignedAttributeTableGenerator()  
  • Method Summary

    Modifier and Type Method Description
    org.bouncycastle.asn1.cms.AttributeTable getAttributes​(Map parameters)
    Cria uma tabela de atributos a partir do padrão e dos parametros enviados e remove o atributo signingTime

    Methods inherited from class org.bouncycastle.cms.DefaultSignedAttributeTableGenerator

    createStandardAttributeTable

    Methods inherited from class java.lang.Object

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

    • PadesSignedAttributeTableGenerator

      public PadesSignedAttributeTableGenerator()
  • Method Details

    • getAttributes

      public org.bouncycastle.asn1.cms.AttributeTable getAttributes​(Map parameters)
      Cria uma tabela de atributos a partir do padrão e dos parametros enviados e remove o atributo signingTime
      Specified by:
      getAttributes in interface org.bouncycastle.cms.CMSAttributeTableGenerator
      Overrides:
      getAttributes in class org.bouncycastle.cms.DefaultSignedAttributeTableGenerator
      Parameters:
      parameters - Map com atributos que serão assinados
      Returns:
      AttributeTable contendo messageDigest, contentType e cmsAlgorithmProtect