Class RevocationRefs
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.RevocationRefs
- All Implemented Interfaces:
SignatureAttribute<JadesAttrCommonStruct>
- Direct Known Subclasses:
AttributeRevocationRefs
public class RevocationRefs extends Object implements SignatureAttribute<JadesAttrCommonStruct>
-
Field Summary
Fields Modifier and Type Field Description static String
CRL_REFS
static String
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificatestatic String
OCSP_REFS
static String
OTHER_REFS
protected JadesVerifier
signatureVerifier
Verificador de assinatura JWS -
Constructor Summary
Constructors Constructor Description RevocationRefs(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader)
Construtor usado para validar o atributoRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, String digestAlgorithm)
Cria o atributo com os dados de revogação tanto no formato de LCRs quanto de respostas OCSP. -
Method Summary
Modifier and Type Method Description List<CRLRef>
getCrlRefs()
Retorna a lista de referências CRLJadesAttrCommonStruct
getEncoded()
Retorna o atributo codificadoString
getIdentifier()
Retorna o identificador do atributoList<OCSPRef>
getOcspRefs()
String
getValuesIdentifier()
Retorna o identificador do atributo de valoresboolean
isSigned()
Informa se o atributo é assinadoboolean
isUnique()
Informa se o atributo deve ter apenas uma instância na assinaturaboolean
match(PKIObject pkiObject)
boolean
match(X509CRL crl)
boolean
match(org.bouncycastle.asn1.ocsp.BasicOCSPResponse response)
void
validate()
Valida o atributo de acordo com suas regras específicas
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
- Constant Field Values
-
CRL_REFS
- See Also:
- Constant Field Values
-
OCSP_REFS
- See Also:
- Constant Field Values
-
OTHER_REFS
- See Also:
- Constant Field Values
-
signatureVerifier
Verificador de assinatura JWS
-
-
Constructor Details
-
RevocationRefs
public RevocationRefs(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) throws SignatureAttributeNotFoundExceptionConstrutor usado para validar o atributo- Parameters:
signatureVerifier
- Usado para criar e verificar o atributo- Throws:
SignatureAttributeNotFoundException
-
RevocationRefs
public RevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, String digestAlgorithm) throws SignatureAttributeExceptionCria o atributo com os dados de revogação tanto no formato de LCRs quanto de respostas OCSP.- Parameters:
crls
- Lista de CRLs do caminho de certificaçãoocsps
- Lista de respostas OCSPs para o caminho de certificaçãootherRefs
- Lista contendo outras referenciasdigestAlgorithm
- Identificador do algoritmo de hash utilizado sobre as referências- Throws:
SignatureAttributeException
- Caso ocorra algum erro relativo aos atributos da assinatura
-
-
Method Details
-
validate
Valida o atributo de acordo com suas regras específicas- Specified by:
validate
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Throws:
SignatureAttributeException
-
getEncoded
Retorna o atributo codificado- Specified by:
getEncoded
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Returns:
- O atributo no formato descrito pelas normas do ETSI
- Throws:
SignatureAttributeException
-
isSigned
public boolean isSigned()Informa se o atributo é assinado- Specified by:
isSigned
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Returns:
- Indica se o atributo é assinado
-
isUnique
public boolean isUnique()Informa se o atributo deve ter apenas uma instância na assinatura- Specified by:
isUnique
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Returns:
- Indica se o atributo deve ter apenas uma instância na assinatura
-
getIdentifier
Retorna o identificador do atributo- Specified by:
getIdentifier
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Returns:
- O identificador do atributo
-
getValuesIdentifier
Retorna o identificador do atributo de valores- Returns:
- O identificador do atributo de valores
-
getCrlRefs
Retorna a lista de referências CRL- Returns:
- A lista de referências de CRL
-
getOcspRefs
-
match
-
match
-
match
public boolean match(org.bouncycastle.asn1.ocsp.BasicOCSPResponse response)
-