Class RefsOnlyTimeStampV2
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.TimeStamp
br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.TimeStampToken
br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.RefsOnlyTimeStampV2
- All Implemented Interfaces:
SignatureAttribute<Element>
,Comparable
public class RefsOnlyTimeStampV2 extends TimeStampToken
-
Field Summary
Fields Modifier and Type Field Description static String
IDENTIFIER
Fields inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.TimeStamp
signatureContainer, signatureVerifier
-
Constructor Summary
Constructors Constructor Description RefsOnlyTimeStampV2(CadesSignatureContainer signatureContainer)
Construtor usado para criar um novo carimbo do tempo.RefsOnlyTimeStampV2(AbstractVerifier signatureVerifier, Integer index)
-
Method Summary
Modifier and Type Method Description protected byte[]
getAttributeHash(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier)
Calcula o hash do atributoprotected String
getElementName()
Retorna o nome da tag do atributoString
getIdentifier()
Obtém o identificador do atributoprotected boolean
isAttributeHashValid(org.bouncycastle.asn1.ASN1ObjectIdentifier hashAlgorithmId, byte[] expected)
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.TimeStampToken
createSignerInformationVerifier, decode, getEncoded, getReport, isSigned, isUnique, makeTimeStampVerifier, validate, validate
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.TimeStamp
addUnsignedAttribute, buildTimeStampToken, compareTo, getContentInfo, getTimeReference
-
Field Details
-
IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Details
-
RefsOnlyTimeStampV2
public RefsOnlyTimeStampV2(AbstractVerifier signatureVerifier, Integer index) throws SignatureAttributeException- Throws:
SignatureAttributeException
-
RefsOnlyTimeStampV2
Construtor usado para criar um novo carimbo do tempo.- Parameters:
signatureContainer
- O conteúdo do carimbo do tempo
-
-
Method Details
-
getElementName
Description copied from class:TimeStampToken
Retorna o nome da tag do atributo- Specified by:
getElementName
in classTimeStampToken
- Returns:
- Retorna "XAdES:SignatureTimeStamp"
-
getAttributeHash
protected byte[] getAttributeHash(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier) throws PbadException, NoSuchAlgorithmExceptionDescription copied from class:TimeStamp
Calcula o hash do atributo- Specified by:
getAttributeHash
in classTimeStamp
- Parameters:
identifier
- O algoritmo utilizado- Returns:
- O valor de hash do atributo
- Throws:
PbadException
- Exceção em caso de erro durante o cálculoNoSuchAlgorithmException
-
isAttributeHashValid
protected boolean isAttributeHashValid(org.bouncycastle.asn1.ASN1ObjectIdentifier hashAlgorithmId, byte[] expected) throws PbadException- Specified by:
isAttributeHashValid
in classTimeStamp
- Throws:
PbadException
-
getIdentifier
Description copied from class:TimeStamp
Obtém o identificador do atributo- Specified by:
getIdentifier
in interfaceSignatureAttribute<Element>
- Specified by:
getIdentifier
in classTimeStamp
- Returns:
- O identificador do atributo
-