Record Class RevocationInfoArchival

java.lang.Object
java.lang.Record
br.ufsc.labsec.parser.cades.attributes.signed.RevocationInfoArchival
Record Components:
crlVals - Lista de CRLs
ocspVals - Lista de respostas OCSP
otherRevVals - Algoritmo de cálculo de hash
All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>

public record RevocationInfoArchival(org.bouncycastle.asn1.ASN1Sequence crlVals, org.bouncycastle.asn1.ASN1Sequence ocspVals, org.bouncycastle.asn1.esf.OtherRevVals otherRevVals) extends Record implements SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
Representa os valores de revogação (LCRs ou respostas OCSP) de uma assinatura. Atributo utilizado pela Adobe.

Oid e esquema do atributo adbe-revinfoarchival retirado de https://www.adobe.com/devnet-docs/acrobatetk/tools/DigSigDC/oids.html e da ISO 32000-1, p. 740 (PDF Reference sixth edition, Adobe® Portable Document Format, Version 1.7, November 2006)

RevocationValues ::= SEQUENCE {
        crlVals
        [0] EXPLICIT SEQUENCE OF CertificateList OPTIONAL,
        ocspVals
        [1] EXPLICIT SEQUENCE OF OCSPResponse OPTIONAL,
        OtherRevInfo
        [2] EXPLICIT SEQUENCE of OtherRevInfo OPTIONAL}

OhterRevInfo ::= SEQUENCE {
 Type  OBJECT IDENTIFIER
 ValValue OCTET STRING
}
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    RevocationInfoArchival(org.bouncycastle.asn1.ASN1Sequence crlVals, org.bouncycastle.asn1.ASN1Sequence ocspVals, org.bouncycastle.asn1.esf.OtherRevVals otherRevVals)
    Creates an instance of a RevocationInfoArchival record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bouncycastle.asn1.ASN1Sequence
    Returns the value of the crlVals record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    org.bouncycastle.asn1.cms.Attribute
    Retorna o atributo codificado
    Retorna o identificador do atributo
    final int
    Returns a hash code value for this object.
    boolean
    Informa se o atributo é assinado
    boolean
    Verifica se o atributo deve ter apenas uma instância na assinatura
    org.bouncycastle.asn1.ASN1Sequence
    Returns the value of the ocspVals record component.
    org.bouncycastle.asn1.esf.OtherRevVals
    Returns the value of the otherRevVals record component.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • RevocationInfoArchival

      public RevocationInfoArchival(org.bouncycastle.asn1.ASN1Sequence crlVals, org.bouncycastle.asn1.ASN1Sequence ocspVals, org.bouncycastle.asn1.esf.OtherRevVals otherRevVals)
      Creates an instance of a RevocationInfoArchival record class.
      Parameters:
      crlVals - the value for the crlVals record component
      ocspVals - the value for the ocspVals record component
      otherRevVals - the value for the otherRevVals record component
  • Method Details

    • getEncoded

      public org.bouncycastle.asn1.cms.Attribute getEncoded() throws SignatureAttributeException
      Description copied from interface: SignatureAttribute
      Retorna o atributo codificado
      Specified by:
      getEncoded in interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      O atributo no formato em que foi parametrizado a classe
      Throws:
      SignatureAttributeException
    • isSigned

      public boolean isSigned()
      Informa 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()
      Description copied from interface: SignatureAttribute
      Verifica se o atributo deve ter apenas uma instância na assinatura
      Specified by:
      isUnique in interface SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
      Returns:
      Indica se o atributo deve ter apenas uma instância na assinatura
    • 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
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • crlVals

      public org.bouncycastle.asn1.ASN1Sequence crlVals()
      Returns the value of the crlVals record component.
      Returns:
      the value of the crlVals record component
    • ocspVals

      public org.bouncycastle.asn1.ASN1Sequence ocspVals()
      Returns the value of the ocspVals record component.
      Returns:
      the value of the ocspVals record component
    • otherRevVals

      public org.bouncycastle.asn1.esf.OtherRevVals otherRevVals()
      Returns the value of the otherRevVals record component.
      Returns:
      the value of the otherRevVals record component