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
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.SignatureTimeStamp
CANON_ALG, ENCODING, signatureVerifier, SPEC_REF, TST_TOKENS, TYPE, VAL
Fields inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.TimeStamp
canonicalizationAlgorithm, stamps
-
Constructor Summary
Constructors Constructor Description RefsOnlyTimeStamp(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 Type Method Description protected byte[]
getHashFromSignature(String hashAlgorithmId)
Calcula o valor de hash do carimboString
getIdentifier()
Retorna o identificador do atributoMethods inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.unsigned.SignatureTimeStamp
decode, decode, decodeValues, getEncoded, getJadesVerifier, isLast, isSigned, isUnique, validate
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.jades.attributes.TimeStamp
getStamps
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface br.ufsc.labsec.signature.conformanceVerifier.common.SignatureAttribute
getEncoded, isSigned, isUnique, validate
-
Field Details
-
IDENTIFIER
Entrada no cabeçalho que relacionam o SigningCertificate- See Also:
- Constant Field Values
-
-
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
public RefsOnlyTimeStamp(List<TstToken> tokens, String canonAlg) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
-
Method Details
-
getIdentifier
Retorna o identificador do atributo- Specified by:
getIdentifier
in interfaceSignatureAttribute<JadesAttrCommonStruct>
- Overrides:
getIdentifier
in classSignatureTimeStamp
- Returns:
- O identificador do atributo
-
getHashFromSignature
Calcula o valor de hash do carimbo- Overrides:
getHashFromSignature
in 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
-