Record Class RevocationInfoArchival
java.lang.Object
java.lang.Record
br.ufsc.labsec.parser.cades.attributes.signed.RevocationInfoArchival
- Record Components:
crlVals- Lista de CRLsocspVals- Lista de respostas OCSPotherRevVals- 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 -
Constructor Summary
ConstructorsConstructorDescriptionRevocationInfoArchival(org.bouncycastle.asn1.ASN1Sequence crlVals, org.bouncycastle.asn1.ASN1Sequence ocspVals, org.bouncycastle.asn1.esf.OtherRevVals otherRevVals) Creates an instance of aRevocationInfoArchivalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.asn1.ASN1SequencecrlVals()Returns the value of thecrlValsrecord component.final booleanIndicates whether some other object is "equal to" this one.org.bouncycastle.asn1.cms.AttributeRetorna o atributo codificadoRetorna o identificador do atributofinal inthashCode()Returns a hash code value for this object.booleanisSigned()Informa se o atributo é assinadobooleanisUnique()Verifica se o atributo deve ter apenas uma instância na assinaturaorg.bouncycastle.asn1.ASN1SequenceocspVals()Returns the value of theocspValsrecord component.org.bouncycastle.asn1.esf.OtherRevValsReturns the value of theotherRevValsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
IDENTIFIER
- See Also:
-
-
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 aRevocationInfoArchivalrecord class.- Parameters:
crlVals- the value for thecrlValsrecord componentocspVals- the value for theocspValsrecord componentotherRevVals- the value for theotherRevValsrecord component
-
-
Method Details
-
getEncoded
Description copied from interface:SignatureAttributeRetorna o atributo codificado- Specified by:
getEncodedin interfaceSignatureAttribute<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:
isSignedin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- Indica se o atributo é assinado
-
isUnique
public boolean isUnique()Description copied from interface:SignatureAttributeVerifica se o atributo deve ter apenas uma instância na assinatura- Specified by:
isUniquein interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- Indica se o atributo deve ter apenas uma instância na assinatura
-
getIdentifier
Retorna o identificador do atributo- Specified by:
getIdentifierin interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>- Returns:
- O identificador do atributo
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
crlVals
-
ocspVals
-
otherRevVals
public org.bouncycastle.asn1.esf.OtherRevVals otherRevVals()Returns the value of theotherRevValsrecord component.- Returns:
- the value of the
otherRevValsrecord component
-