Class AttributeRevocationRefs
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.RevocationRefs
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.AttributeRevocationRefs
- All Implemented Interfaces:
SignatureAttribute<JadesAttrCommonStruct>
public class AttributeRevocationRefs extends RevocationRefs
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificateprotected JadesVerifier
signatureVerifier
Verificador de assinatura JWSFields inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.RevocationRefs
CRL_REFS, OCSP_REFS, OTHER_REFS
-
Constructor Summary
Constructors Constructor Description AttributeRevocationRefs(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader)
AttributeRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, String digestAlgorithm)
AttributeRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, org.bouncycastle.asn1.ASN1ObjectIdentifier digestIdentifier)
AttributeRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, org.bouncycastle.asn1.x509.AlgorithmIdentifier digestIdentifier)
-
Method Summary
Modifier and Type Method Description protected Set<X509CRL>
getCRLsFromValueAttribute(boolean signerOnly, org.json.JSONObject attribute)
Retorna a lista de CRLs presentes no atributo de valores de revogaçãoString
getIdentifier()
Retorna o identificador do atributoString
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 assinaturaMethods inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.RevocationRefs
crlSelectorFromCertPath, getCrlRefs, getEncoded, getOcspRefs, getOcspResponsesFromValueAttribute, getOtherRefsValues, match, match, match, validate
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
- Constant Field Values
-
signatureVerifier
Verificador de assinatura JWS
-
-
Constructor Details
-
AttributeRevocationRefs
public AttributeRevocationRefs(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) -
AttributeRevocationRefs
public AttributeRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, String digestAlgorithm) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
AttributeRevocationRefs
public AttributeRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, org.bouncycastle.asn1.ASN1ObjectIdentifier digestIdentifier) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
AttributeRevocationRefs
public AttributeRevocationRefs(List<CRL> crls, List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps, List<org.json.JSONObject> otherRefs, org.bouncycastle.asn1.x509.AlgorithmIdentifier digestIdentifier) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
-
Method Details
-
isSigned
public boolean isSigned()Informa se o atributo é assinado- Specified by:
isSigned
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Overrides:
isSigned
in classRevocationRefs
- 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>
- Overrides:
isUnique
in classRevocationRefs
- 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>
- Overrides:
getIdentifier
in classRevocationRefs
- Returns:
- O identificador do atributo
-
getValuesIdentifier
Retorna o identificador do atributo de valores- Overrides:
getValuesIdentifier
in classRevocationRefs
- Returns:
- O identificador do atributo de valores
-
getCRLsFromValueAttribute
protected Set<X509CRL> getCRLsFromValueAttribute(boolean signerOnly, org.json.JSONObject attribute) throws CertificateException, CRLExceptionRetorna a lista de CRLs presentes no atributo de valores de revogação- Overrides:
getCRLsFromValueAttribute
in classRevocationRefs
- Parameters:
signerOnly
- Indica se é necessária somente a CRL do certificado do assinanteattribute
-- Returns:
- A lista de CRLs presentes no atributo de valores
- Throws:
CertificateException
CRLException
-