Class SigAndRefsTimeStamp
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.SigAndRefsTimeStamp
- All Implemented Interfaces:
SignatureAttribute<JadesAttrCommonStruct>
public class SigAndRefsTimeStamp 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 SigAndRefsTimeStamp(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader)
SigAndRefsTimeStamp(String type, String encoding, String specRef, org.bouncycastle.asn1.cms.ContentInfo contentInfo, String canonAlg)
SigAndRefsTimeStamp(List<TstToken> tokens, String canonAlg)
SigAndRefsTimeStamp(org.bouncycastle.asn1.cms.ContentInfo contentInfo)
-
Method Summary
Modifier and Type Method Description protected byte[]
getHashFromSignature(String hashAlgorithmId)
Calcula o hash do atributoString
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
-
SigAndRefsTimeStamp
public SigAndRefsTimeStamp(Verifier signatureVerifier, org.json.JSONObject protectedHeader, org.json.JSONObject unprotectedHeader) -
SigAndRefsTimeStamp
public SigAndRefsTimeStamp(org.bouncycastle.asn1.cms.ContentInfo contentInfo) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
SigAndRefsTimeStamp
public SigAndRefsTimeStamp(String type, String encoding, String specRef, org.bouncycastle.asn1.cms.ContentInfo contentInfo, String canonAlg) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
SigAndRefsTimeStamp
public SigAndRefsTimeStamp(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 hash do atributo- Overrides:
getHashFromSignature
in classSignatureTimeStamp
- Parameters:
hashAlgorithmId
- O algoritmo utilizado- Returns:
- O valor de hash do atributo
- Throws:
PbadException
- Exceção em caso de erro durante o cálculo
-