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 Summary
Fields Modifier and Type Field Description protected List<org.bouncycastle.asn1.esf.CrlOcspRef>
crlOcspRefs
Referências de CRLs e respostas OCSPprotected AbstractVerifier
signatureVerifier
Objeto de verificador -
Constructor Summary
Constructors Constructor Description AbstractASN1RevocationReferences(AbstractVerifier signatureVerifier, Integer index)
Deve-se utilizar este construtor no momento de validação do atributo.AbstractASN1RevocationReferences(List<Object> revocationValues, String algorithm)
Cria um atributo que irá referenciar as LCRs passadas na lista.AbstractASN1RevocationReferences(List<Object> revocationValues, org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm)
AbstractASN1RevocationReferences(List<Object> revocationValues, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithm)
AbstractASN1RevocationReferences(org.bouncycastle.asn1.cms.Attribute attributeEncoded)
Constrói um objetoIdAaEtsAttrRevocationRefs
-
Method Summary
Modifier and Type Method Description org.bouncycastle.util.Selector<CRL>
asCRLSelector()
org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>
asOCSPSelector()
Object
clone()
org.bouncycastle.asn1.cms.Attribute
getEncoded()
Retorna o atributo codificadoList<org.bouncycastle.asn1.esf.CrlOcspRef>
getReferences()
boolean
match(Object object)
static boolean
match(Object object, org.bouncycastle.asn1.esf.CrlOcspRef ref)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.conformanceVerifier.common.SignatureAttribute
getIdentifier, isSigned, isUnique, validate
-
Field Details
-
crlOcspRefs
Referências de CRLs e respostas OCSP -
signatureVerifier
Objeto de verificador
-
-
Constructor Details
-
AbstractASN1RevocationReferences
public AbstractASN1RevocationReferences(AbstractVerifier signatureVerifier, Integer index) throws SignatureAttributeExceptionDeve-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 atributoindex
- Índice usado para selecionar o atributo- Throws:
SignatureAttributeException
-
AbstractASN1RevocationReferences
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 paradigestAlgorithm
- Parameters:
revocationValues
- A lista de CRLs e/ou OCSPsalgorithm
- O algoritmo de hash
-
AbstractASN1RevocationReferences
-
AbstractASN1RevocationReferences
-
AbstractASN1RevocationReferences
public AbstractASN1RevocationReferences(org.bouncycastle.asn1.cms.Attribute attributeEncoded)Constrói um objetoIdAaEtsAttrRevocationRefs
- Parameters:
attributeEncoded
- O atributo codificado
-
-
Method Details
-
asCRLSelector
-
asOCSPSelector
public org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> asOCSPSelector() -
getReferences
-
match
- Specified by:
match
in interfaceorg.bouncycastle.util.Selector
-
match
-
getEncoded
Retorna o atributo codificado- Specified by:
getEncoded
in interfaceSignatureAttribute<org.bouncycastle.asn1.cms.Attribute>
- Returns:
- O atributo em formato ASN.1
- Throws:
SignatureAttributeException
-
clone
-