Class ArchiveTimeStampCreator
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<XadesInformation, Element, XadesSignature>
br.ufsc.labsec.signature.signer.creator.TimestampCreator<XadesInformation, Element, XadesSignature>
br.ufsc.labsec.signature.conformanceVerifier.xades.creator.unsigned.ArchiveTimeStampCreator
public class ArchiveTimeStampCreator
extends TimestampCreator<XadesInformation, Element, XadesSignature>
Esta classe é responsável pela criação do atributo de carimbo de tempo
de arquivamento
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SignatureAttribute<Element> createAttribute(byte[] encodedAttribute) protected byte[]getDigestToSign(XadesSignature signature, String digestAlgName) Methods inherited from class TimestampCreator
getAttributeMethods inherited from class UnsignedAttributeCreator
createRevocationData, isSigned
-
Constructor Details
-
ArchiveTimeStampCreator
Construtor- Parameters:
component- Componente de assinatura XAdES
-
-
Method Details
-
getDigestToSign
protected byte[] getDigestToSign(XadesSignature signature, String digestAlgName) throws NoSuchAlgorithmException, PbadException - Specified by:
getDigestToSignin classTimestampCreator<XadesInformation, Element, XadesSignature>- Throws:
NoSuchAlgorithmExceptionPbadException
-
createAttribute
protected SignatureAttribute<Element> createAttribute(byte[] encodedAttribute) throws CadesSignatureException - Specified by:
createAttributein classTimestampCreator<XadesInformation, Element, XadesSignature>- Throws:
CadesSignatureException
-