Class RefsOnlyTimeStamp
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.unsigned.RefsOnlyTimeStamp
- All Implemented Interfaces:
SignatureAttribute<JadesAttrCommonStruct>
public class RefsOnlyTimeStamp
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
ConstructorsConstructorDescriptionRefsOnlyTimeStamp(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) RefsOnlyTimeStamp(String type, String encoding, String specRef, org.bouncycastle.asn1.cms.ContentInfo contentInfo, String canonAlg) RefsOnlyTimeStamp(List<TstToken> tokens, String canonAlg) RefsOnlyTimeStamp(org.bouncycastle.asn1.cms.ContentInfo contentInfo) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getHashFromSignature(String hashAlgorithmId) Calcula o valor de hash do carimboRetorna o identificador do atributoMethods inherited from class SignatureTimeStamp
decode, decode, decodeValues, getEncoded, getJadesVerifier, isLast, isSigned, isUnique, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SignatureAttribute
getEncoded, getValue, isSigned, isUnique, validate
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
-
-
Constructor Details
-
RefsOnlyTimeStamp
public RefsOnlyTimeStamp(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) -
RefsOnlyTimeStamp
public RefsOnlyTimeStamp(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws SignatureAttributeException - Throws:
SignatureAttributeException
-
RefsOnlyTimeStamp
public RefsOnlyTimeStamp(String type, String encoding, String specRef, org.bouncycastle.asn1.cms.ContentInfo contentInfo, String canonAlg) throws SignatureAttributeException - Throws:
SignatureAttributeException
-
RefsOnlyTimeStamp
- 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- 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
-