Class RevocationInfoArchival
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.cades.attributes.signed.RevocationInfoArchival
- All Implemented Interfaces:
SignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
public class RevocationInfoArchival extends Object 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 String
IDENTIFIER
protected AbstractVerifier
signatureVerifier
-
Constructor Summary
Constructors Constructor Description RevocationInfoArchival(AbstractVerifier signatureVerifier, Integer index)
Construtor -
Method Summary
Modifier and Type Method Description protected org.bouncycastle.asn1.esf.RevocationValues
decode(org.bouncycastle.asn1.ASN1Sequence revocationValuesSequence)
org.bouncycastle.asn1.cms.Attribute
getEncoded()
Retorna o atributo codificadoString
getIdentifier()
Retorna o identificador do atributoboolean
isSigned()
Informa se o atributo é assinadoboolean
isUnique()
Verifica se o atributo deve ter apenas uma instância na assinaturavoid
validate()
Valida o atributo
-
Field Details
-
IDENTIFIER
- See Also:
- Constant Field Values
-
signatureVerifier
-
-
Constructor Details
-
RevocationInfoArchival
public RevocationInfoArchival(AbstractVerifier signatureVerifier, Integer index) throws SignatureAttributeExceptionConstrutor- Parameters:
signatureVerifier
- Usado para criar e verificar o atributoindex
- Índice usado para selecionar o atributo- Throws:
SignatureAttributeException
-
-
Method Details
-
validate
Valida o atributo- Specified by:
validate
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Throws:
SignatureAttributeException
-
getEncoded
Description copied from interface:SignatureAttribute
Retorna o atributo codificado- Specified by:
getEncoded
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O atributo no formato em que foi parametrizado a classe
- Throws:
SignatureAttributeException
-
decode
protected org.bouncycastle.asn1.esf.RevocationValues decode(org.bouncycastle.asn1.ASN1Sequence revocationValuesSequence) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
isSigned
public boolean isSigned()Informa se o atributo é assinado- Specified by:
isSigned
in interfaceSignatureAttribute<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 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:
getIdentifier
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O identificador do atributo
-