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[]>certificatesHashIndexprotected List<byte[]>crlsHashIndexprotected org.bouncycastle.asn1.x509.AlgorithmIdentifierhashIndAlgorithmstatic StringIDENTIFIERprotected List<byte[]>unsignedAttrValuesHashIndexprotected AbstractVerifierverifier -
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 voiddecode(org.bouncycastle.asn1.cms.Attribute genericEncoding)Constrói um objetoATSHashIndexV3org.bouncycastle.asn1.cms.AttributegetEncoded()Retorna o atributo codificado em ASN.1StringgetIdentifier()Retorna o identificador do atributoAttributeValueReportgetValue()booleanisSigned()Indica se o atributo é assinadobooleanisUnique()Indica se o atributo é únicovoidvalidate()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:
getIdentifierin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- O identificador do atributo
-
validate
Valida a integridade dos atributos do archive-time-stamp-v3- Specified by:
validatein interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Throws:
PbadExceptionIOExceptionSignatureAttributeException
-
getEncoded
Retorna o atributo codificado em ASN.1- Specified by:
getEncodedin 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:
isSignedin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- Indica se o atributo é assinado
-
isUnique
public boolean isUnique()Indica se o atributo é único- Specified by:
isUniquein interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- Indica se o atributo é único
-
getValue
- Specified by:
getValuein interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
-