Class AbstractASN1RevocationReferences

java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.cades.attributes.unsigned.AbstractASN1RevocationReferences
All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>, Cloneable, org.bouncycastle.util.Selector
Direct Known Subclasses:
IdAaEtsAttrRevocationRefs, IdAaEtsRevocationRefs

public abstract class AbstractASN1RevocationReferences
extends Object
implements SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>, org.bouncycastle.util.Selector
  • Field Details

    • crlOcspRefs

      protected List<org.bouncycastle.asn1.esf.CrlOcspRef> crlOcspRefs
      Referências de CRLs e respostas OCSP
    • signatureVerifier

      protected AbstractVerifier signatureVerifier
      Objeto de verificador
  • Constructor Details

    • AbstractASN1RevocationReferences

      public AbstractASN1RevocationReferences​(AbstractVerifier signatureVerifier, Integer index) throws SignatureAttributeException

      Deve-se utilizar este construtor no momento de validação do atributo. O parâmetro index deve ser usado no caso em que há mais de um atributo do mesmo tipo. Caso contrário, ele deve ser zero.

      Parameters:
      signatureVerifier - Usado para criar e verificar o atributo
      index - Índice usado para selecionar o atributo
      Throws:
      SignatureAttributeException
    • AbstractASN1RevocationReferences

      public AbstractASN1RevocationReferences​(List<Object> revocationValues, String algorithm)
      Cria um atributo que irá referenciar as LCRs passadas na lista. Na referência será usado um algoritmo de hash, o identificador do mesmo deve ser passado para digestAlgorithm
      Parameters:
      revocationValues - A lista de CRLs e/ou OCSPs
      algorithm - O algoritmo de hash
    • AbstractASN1RevocationReferences

      public AbstractASN1RevocationReferences​(List<Object> revocationValues, org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
    • AbstractASN1RevocationReferences

      public AbstractASN1RevocationReferences​(List<Object> revocationValues, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
    • AbstractASN1RevocationReferences

      public AbstractASN1RevocationReferences​(org.bouncycastle.asn1.cms.Attribute attributeEncoded)
      Constrói um objeto IdAaEtsAttrRevocationRefs
      Parameters:
      attributeEncoded - O atributo codificado
  • Method Details

    • asCRLSelector

      public org.bouncycastle.util.Selector<CRL> asCRLSelector()
    • asOCSPSelector

      public org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> asOCSPSelector()
    • getReferences

      public List<org.bouncycastle.asn1.esf.CrlOcspRef> getReferences()
    • match

      public boolean match​(Object object)
      Specified by:
      match in interface org.bouncycastle.util.Selector
    • match

      public static boolean match​(Object object, org.bouncycastle.asn1.esf.CrlOcspRef ref)
    • getEncoded

      public org.bouncycastle.asn1.cms.Attribute getEncoded() throws SignatureAttributeException
      Retorna o atributo codificado
      Specified by:
      getEncoded in interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      O atributo em formato ASN.1
      Throws:
      SignatureAttributeException
    • clone

      public Object clone()
      Specified by:
      clone in interface org.bouncycastle.util.Selector
      Overrides:
      clone in class Object