Class ATSHashIndexV3
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.cades.attributes.unsigned.ATSHashIndexV3
- All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
public class ATSHashIndexV3 extends Object implements SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
Atributo necessário para implementação de archive-time-stamp v3
Serve para validação de conformidade dos atributos da timestamp
Oid e esquema do atributo attribute-revocation-references retirado do documento ETSI EN 319 122-1 V1.2.1
id-aa-ATSHashIndex-v3 OBJECT IDENTIFIER ::= { itu-t(0) identified-organization(4) etsi(0) cades(19122) attributes(1) 5 } ATSHashIndexV3 ::= SEQUENCE { hashIndAlgorithm AlgorithmIdentifier, certificatesHashIndex SEQUENCE OF OCTET STRING, crlsHashIndex SEQUENCE OF OCTET STRING, unsignedAttrValuesHashIndex SEQUENCE OF OCTET STRING }
-
Field Summary
Fields Modifier and Type Field Description protected List<byte[]>
certificatesHashIndex
protected List<byte[]>
crlsHashIndex
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier
hashIndAlgorithm
static String
IDENTIFIER
protected List<byte[]>
unsignedAttrValuesHashIndex
protected AbstractVerifier
verifier
-
Constructor Summary
Constructors Constructor Description ATSHashIndexV3(AbstractVerifier verifier, Integer index)
ATSHashIndexV3(AbstractVerifier verifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, List<byte[]> certificatesHashIndex, List<byte[]> crlsHashIndex, List<byte[]> unsignedAttrValuesHashIndex)
-
Method Summary
Modifier and Type Method Description void
decode(org.bouncycastle.asn1.cms.Attribute genericEncoding)
Constrói um objetoATSHashIndexV3
org.bouncycastle.asn1.cms.Attribute
getEncoded()
Retorna o atributo codificado em ASN.1String
getIdentifier()
Retorna o identificador do atributoboolean
isSigned()
Indica se o atributo é assinadoboolean
isUnique()
Indica se o atributo é únicovoid
validate()
Valida a integridade dos atributos do archive-time-stamp-v3
-
Field Details
-
IDENTIFIER
- See Also:
- Constant Field Values
-
verifier
-
hashIndAlgorithm
protected org.bouncycastle.asn1.x509.AlgorithmIdentifier hashIndAlgorithm -
certificatesHashIndex
-
crlsHashIndex
-
unsignedAttrValuesHashIndex
-
-
Constructor Details
-
ATSHashIndexV3
- Throws:
SignatureAttributeException
-
ATSHashIndexV3
public ATSHashIndexV3(AbstractVerifier verifier, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, List<byte[]> certificatesHashIndex, List<byte[]> crlsHashIndex, List<byte[]> unsignedAttrValuesHashIndex)
-
-
Method Details
-
decode
public void decode(org.bouncycastle.asn1.cms.Attribute genericEncoding) throws SignatureAttributeExceptionConstrói um objetoATSHashIndexV3
- Parameters:
genericEncoding
- O atributo codificado em ASN.1- Throws:
SignatureAttributeException
-
getIdentifier
Retorna o identificador do atributo- Specified by:
getIdentifier
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O identificador do atributo
-
validate
Valida a integridade dos atributos do archive-time-stamp-v3- Specified by:
validate
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Throws:
PbadException
IOException
SignatureAttributeException
-
getEncoded
Retorna o atributo codificado em ASN.1- Specified by:
getEncoded
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O atributo em formato de Attribute
- Throws:
SignatureAttributeException
-
isSigned
public boolean isSigned()Indica se o atributo é assinado- Specified by:
isSigned
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- Indica se o atributo é assinado
-
isUnique
public boolean isUnique()Indica se o atributo é único- Specified by:
isUnique
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- Indica se o atributo é único
-