Class AbstractASN1RevocationReferences

java.lang.Object
br.ufsc.labsec.parser.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

      public List<org.bouncycastle.asn1.esf.CrlOcspRef> crlOcspRefs
      Referências de CRLs e respostas OCSP
  • Constructor Details

    • AbstractASN1RevocationReferences

      public AbstractASN1RevocationReferences()
    • 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(AbstractASN1RevocationReferences attr)
  • 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
    • getCrlOcspRefs

      public List<org.bouncycastle.asn1.esf.CrlOcspRef> getCrlOcspRefs()