Class CounterSignature
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.jades.JadesSignature
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.CounterSignature
- All Implemented Interfaces:
Signature<JadesAttrCommonStruct>
,SignatureAttribute<JadesAttrCommonStruct>
,SignatureObject
public class CounterSignature extends JadesSignature implements SignatureAttribute<JadesAttrCommonStruct>
-
Nested Class Summary
Nested classes/interfaces inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.JadesSignature
JadesSignature.ContentEncod
-
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.JadesSignature
payloadInBase64Url
-
Constructor Summary
Constructors Constructor Description CounterSignature(String encodedProtectedHeader, String encodedSignature, org.json.JSONObject unprotectedHeader, JadesSignatureContainer signatureContainer)
-
Method Summary
Modifier and Type Method Description JadesAttrCommonStruct
getEncoded()
Retorna o atributo codificadoString
getIdentifier()
Retorna o identificador do atributoboolean
isSigned()
Informa se o atributo é assinadoboolean
isUnique()
Informa se o atributo deve ter apenas uma instância na assinaturavoid
validate()
Valida o atributo de acordo com suas regras específicas (ver normas do ETSI para cada atributo).Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.JadesSignature
addProcessedCrit, addUnsignedAttribute, containsUnprotectedHeaders, getArchiveTimeStampHashValue, getAttributeList, getCertificateChain, getEncodedAttribute, getEncodedAttribute, getEncodedProtectedHeader, getEncodedSignature, getEncodedUnprotectedHeaders, getPayloadFromSigDHeader, getProtectedHeaders, getProtectedHeaderValue, getRefsOnlyTimeStampHashValue, getSigAndRefsHashValue, getSignaturePolicyIdentifier, getSignaturePolicyUri, getSignatureValueHash, getSignedAttributeList, getSignerDataTimeStampHashValue, getUnprotectedHeaders, getUnprotectedHeaderValue, getUnsignedAttributeList, initiateCritHeader, isDetached, setEtsiuEncod, validateCritHeader, verifyIntegrity
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
- Constant Field Values
-
-
Constructor Details
-
CounterSignature
public CounterSignature(String encodedProtectedHeader, String encodedSignature, org.json.JSONObject unprotectedHeader, JadesSignatureContainer signatureContainer) throws SignatureException- Throws:
SignatureException
-
-
Method Details
-
validate
Valida o atributo de acordo com suas regras específicas (ver normas do ETSI para cada atributo).- Specified by:
validate
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Throws:
SignatureAttributeException
PbadException
IOException
-
getEncoded
Retorna o atributo codificado- Specified by:
getEncoded
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Returns:
- O atributo no formato descrito pelas normas do ETSI e RFCs
- 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
-