Class AttributeCertificateRefs
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.CompleteCertificateRefs
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.AttributeCertificateRefs
- All Implemented Interfaces:
SignatureAttribute<JadesAttrCommonStruct>
public class AttributeCertificateRefs extends CompleteCertificateRefs
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificateFields inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.CompleteCertificateRefs
DIG_ALG, DIG_VAL, KID, WRONG_SIZE_OF_CERTIFICATES, X5U
-
Constructor Summary
Constructors Constructor Description AttributeCertificateRefs(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader)
AttributeCertificateRefs(List<Certificate> certificates, String digestAlgorithm)
AttributeCertificateRefs(List<Certificate> certificates, org.bouncycastle.asn1.ASN1ObjectIdentifier digestAlgorithm)
AttributeCertificateRefs(List<Certificate> certificates, org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm)
-
Method Summary
Modifier and Type Method Description String
getIdentifier()
Retorna o identificador do atributoboolean
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.CompleteCertificateRefs
getCertIDs, getEncoded, validate
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
- Constant Field Values
-
-
Constructor Details
-
AttributeCertificateRefs
public AttributeCertificateRefs(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) throws SignatureAttributeException, EncodingException -
AttributeCertificateRefs
public AttributeCertificateRefs(List<Certificate> certificates, org.bouncycastle.asn1.x509.AlgorithmIdentifier digestAlgorithm) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
AttributeCertificateRefs
public AttributeCertificateRefs(List<Certificate> certificates, org.bouncycastle.asn1.ASN1ObjectIdentifier digestAlgorithm) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
AttributeCertificateRefs
public AttributeCertificateRefs(List<Certificate> certificates, String digestAlgorithm) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
-
Method Details
-
isSigned
public boolean isSigned()Informa se o atributo é assinado- Specified by:
isSigned
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Overrides:
isSigned
in classCompleteCertificateRefs
- 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 classCompleteCertificateRefs
- 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 classCompleteCertificateRefs
- Returns:
- O identificador do atributo
-