Class ATSHashIndexV3
java.lang.Object
br.ufsc.labsec.parser.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 -
Constructor Summary
ConstructorsConstructorDescriptionATSHashIndexV3(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, List<byte[]> certificatesHashIndex, List<byte[]> crlsHashIndex, List<byte[]> unsignedAttrValuesHashIndex) -
Method Summary
Modifier and TypeMethodDescriptionList<byte[]> org.bouncycastle.asn1.cms.AttributeRetorna o atributo codificado em ASN.1org.bouncycastle.asn1.x509.AlgorithmIdentifierRetorna o identificador do atributoList<byte[]> booleanisSigned()Indica se o atributo é assinadobooleanisUnique()Indica se o atributo é único
-
Field Details
-
IDENTIFIER
- See Also:
-
hashIndAlgorithm
public final org.bouncycastle.asn1.x509.AlgorithmIdentifier hashIndAlgorithm -
certificatesHashIndex
-
crlsHashIndex
-
unsignedAttrValuesHashIndex
-
-
Constructor Details
-
ATSHashIndexV3
-
-
Method Details
-
getIdentifier
Retorna o identificador do atributo- Specified by:
getIdentifierin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- O identificador do atributo
-
getHashIndAlgorithm
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashIndAlgorithm() -
getCertificatesHashIndex
-
getUnsignedAttrValuesHashIndex
-
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
-