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
public class RefsOnlyTimeStampV2 extends XAdESTimeStampType
-
Field Summary
Fields Modifier and Type Field Description static StringIDENTIFIERstatic List<String>mandatoryAttributesstatic List<String>optionalAttributesFields inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.schema.TimeStamp
index, 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 StringgetElementName()Retorna o nome da tag do atributoStringgetIdentifier()Obtém o identificador do atributoprotected booleanisAttributeHashValid(org.bouncycastle.asn1.ASN1ObjectIdentifier hashAlgorithmId, byte[] expected)Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.schema.XAdESTimeStampType
createSignerInformationVerifier, decode, getEncoded, getReport, isSigned, isUnique, makeTimeStampVerifier, validate, validateMethods inherited from class br.ufsc.labsec.signature.conformanceVerifier.xades.attributes.schema.TimeStamp
addUnsignedAttribute, buildTimeStampToken, compareTo, getContentInfo, getTimeReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface br.ufsc.labsec.signature.conformanceVerifier.common.SignatureAttribute
getValue
-
Field Details
-
IDENTIFIER
- See Also:
- Constant Field Values
-
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, NoSuchAlgorithmExceptionDescription 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
-