Class RefsOnlyTimeStampV2
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.schema.TimeStamp
br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.schema.XAdESTimeStampType
br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.unsigned.RefsOnlyTimeStampV2
- All Implemented Interfaces:
SignatureAttribute<Element>, Comparable
-
Field Summary
FieldsFields inherited from class TimeStamp
index, signatureContainer, signatureVerifier -
Constructor Summary
ConstructorsConstructorDescriptionRefsOnlyTimeStampV2(CadesSignatureContainer signatureContainer) Construtor usado para criar um novo carimbo do tempo.RefsOnlyTimeStampV2(AbstractVerifier signatureVerifier, Integer index) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]getAttributeHash(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier) Calcula o hash do atributoprotected StringRetorna o nome da tag do atributoObtém o identificador do atributoprotected booleanisAttributeHashValid(org.bouncycastle.asn1.ASN1ObjectIdentifier hashAlgorithmId, byte[] expected) Methods inherited from class XAdESTimeStampType
createSignerInformationVerifier, decode, getEncoded, getReport, isSigned, isUnique, makeTimeStampVerifier, validate, validateMethods inherited from class TimeStamp
addUnsignedAttribute, buildTimeStampToken, compareTo, getContentInfo, getTimeReferenceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SignatureAttribute
getValue
-
Field Details
-
IDENTIFIER
- See Also:
-
mandatoryAttributes
-
optionalAttributes
-
-
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:XAdESTimeStampTypeRetorna o nome da tag do atributo- Specified by:
getElementNamein classXAdESTimeStampType- Returns:
- Retorna "XAdES:SignatureTimeStamp"
-
getAttributeHash
protected byte[] getAttributeHash(org.bouncycastle.asn1.ASN1ObjectIdentifier identifier) throws PbadException, NoSuchAlgorithmException Description copied from class:TimeStampCalcula o hash do atributo- Specified by:
getAttributeHashin 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:
isAttributeHashValidin classTimeStamp- Throws:
PbadException
-
getIdentifier
Description copied from class:TimeStampObtém o identificador do atributo- Specified by:
getIdentifierin interfaceSignatureAttribute<Element>- Specified by:
getIdentifierin classTimeStamp- Returns:
- O identificador do atributo
-