Package br.ufsc.labsec.signature.tsa
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 signingTimeMethods inherited from class org.bouncycastle.cms.DefaultSignedAttributeTableGenerator
createStandardAttributeTable
-
Constructor Details
-
PadesSignedAttributeTableGenerator
public PadesSignedAttributeTableGenerator()
-
-
Method Details
-
getAttributes
Cria uma tabela de atributos a partir do padrão e dos parametros enviados e remove o atributo signingTime- Specified by:
getAttributes
in interfaceorg.bouncycastle.cms.CMSAttributeTableGenerator
- Overrides:
getAttributes
in classorg.bouncycastle.cms.DefaultSignedAttributeTableGenerator
- Parameters:
parameters
- Map com atributos que serão assinados- Returns:
- AttributeTable contendo messageDigest, contentType e cmsAlgorithmProtect
-