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 Details

    • IDENTIFIER

      public static final String IDENTIFIER
      See Also:
    • hashIndAlgorithm

      public final org.bouncycastle.asn1.x509.AlgorithmIdentifier hashIndAlgorithm
    • certificatesHashIndex

      protected final List<byte[]> certificatesHashIndex
    • crlsHashIndex

      protected final List<byte[]> crlsHashIndex
    • unsignedAttrValuesHashIndex

      protected final List<byte[]> unsignedAttrValuesHashIndex
  • Constructor Details

    • ATSHashIndexV3

      public ATSHashIndexV3(org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier, List<byte[]> certificatesHashIndex, List<byte[]> crlsHashIndex, List<byte[]> unsignedAttrValuesHashIndex)
  • Method Details

    • getIdentifier

      public String getIdentifier()
      Retorna o identificador do atributo
      Specified by:
      getIdentifier in interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      O identificador do atributo
    • getHashIndAlgorithm

      public org.bouncycastle.asn1.x509.AlgorithmIdentifier getHashIndAlgorithm()
    • getCertificatesHashIndex

      public List<byte[]> getCertificatesHashIndex()
    • getUnsignedAttrValuesHashIndex

      public List<byte[]> getUnsignedAttrValuesHashIndex()
    • getEncoded

      public org.bouncycastle.asn1.cms.Attribute getEncoded() throws SignatureAttributeException
      Retorna o atributo codificado em ASN.1
      Specified by:
      getEncoded in interface SignatureAttribute<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 interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      Indica se o atributo é assinado
    • isUnique

      public boolean isUnique()
      Indica se o atributo é único
      Specified by:
      isUnique in interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      Indica se o atributo é único