Class AllDataObjectsTimeStamp
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.TimeStamp
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.SignatureTimeStamp
br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.signed.AllDataObjectsTimeStamp
- All Implemented Interfaces:
SignatureAttribute<JadesAttrCommonStruct>
public class AllDataObjectsTimeStamp
extends SignatureTimeStamp
implements SignatureAttribute<JadesAttrCommonStruct>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEntrada no cabeçalho que relacionam o SigningCertificateFields inherited from class SignatureTimeStamp
CANON_ALG, ENCODING, NULL_CONTENT_INFO, signatureVerifier, SPEC_REF, TST_TOKENS, TYPE, VALFields inherited from class TimeStamp
canonicalizationAlgorithm, stamps -
Constructor Summary
ConstructorsConstructorDescriptionAllDataObjectsTimeStamp(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) AllDataObjectsTimeStamp(org.bouncycastle.asn1.cms.ContentInfo contentInfo) -
Method Summary
Modifier and TypeMethodDescriptionRetorna o atributo codificadoprotected byte[]getHashFromSignature(String hashAlgorithmId) Calcula o valor de hash do carimbo de tempoRetorna o identificador do atributoMethods inherited from class SignatureTimeStamp
decode, decode, decodeValues, getJadesVerifier, isLast, isSigned, isUnique, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SignatureAttribute
getValue, isSigned, isUnique, validate
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
-
-
Constructor Details
-
AllDataObjectsTimeStamp
public AllDataObjectsTimeStamp(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) -
AllDataObjectsTimeStamp
public AllDataObjectsTimeStamp(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws SignatureAttributeException - Throws:
SignatureAttributeException
-
-
Method Details
-
getIdentifier
Retorna o identificador do atributo- Specified by:
getIdentifierin interfaceSignatureAttribute<JadesAttrCommonStruct>- Overrides:
getIdentifierin classSignatureTimeStamp- Returns:
- O identificador do atributo
-
getHashFromSignature
Calcula o valor de hash do carimbo de tempo- Overrides:
getHashFromSignaturein classSignatureTimeStamp- Parameters:
hashAlgorithmId- O algoritmo a ser utilizado no cálculo- Returns:
- O valor de hash do carimbo
- Throws:
PbadException- Exceção em caso de erro na canonização
-
getEncoded
Retorna o atributo codificado- Specified by:
getEncodedin interfaceSignatureAttribute<JadesAttrCommonStruct>- Overrides:
getEncodedin classSignatureTimeStamp- Returns:
- O atributo no formato descrito pelas normas do ETSI e RFCs
- Throws:
SignatureAttributeException
-