Class TimestampCreator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>>
java.lang.Object
br.ufsc.labsec.signature.signer.UnsignedAttributeCreator<Info,Encod,Sig>
br.ufsc.labsec.signature.signer.creator.TimestampCreator<Info,Encod,Sig>
- Direct Known Subclasses:
ArchiveTimeStampCreator,ArchiveTimeStampCreator,IdAaEtsArchiveTimeStampV2Creator,IdAaEtsArchiveTimeStampV3Creator,IdAaEtsEscTimeStampCreator,IdAaSignatureTimeStampCreator,RefsOnlyTimeStampCreator,RefsOnlyTimeStampV2Creator,SigAndRefsTimeStampCreator,SigAndRefsTimeStampCreator,SigAndRefsTimeStampV2Creator,SignatureTimeStampCreator,SignatureTimeStampCreator
public abstract class TimestampCreator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>> extends UnsignedAttributeCreator<Info,Encod,Sig>
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected abstract SignatureAttribute<Encod>createAttribute(byte[] encodedAttribute)<Information extends Info>
SignatureAttribute<Encod>getAttribute(FileToBeSigned<Information> fileToBeSigned, Sig signature)Retorna o atributoprotected abstract byte[]getDigestToSign(Sig signature, String digestAlgName)Methods inherited from class br.ufsc.labsec.signature.signer.UnsignedAttributeCreator
createRevocationData, isSigned
-
Constructor Details
-
TimestampCreator
-
-
Method Details
-
getAttribute
public <Information extends Info> SignatureAttribute<Encod> getAttribute(FileToBeSigned<Information> fileToBeSigned, Sig signature) throws SignatureAttributeExceptionDescription copied from class:UnsignedAttributeCreatorRetorna o atributo- Specified by:
getAttributein classUnsignedAttributeCreator<Info extends ExtraInformation,Encod,Sig extends Signature<Encod>>- Returns:
- Um objeto do atributo
- Throws:
SignatureAttributeException- Exceção caso ocorra algum erro durante a construção do objeto
-
getDigestToSign
protected abstract byte[] getDigestToSign(Sig signature, String digestAlgName) throws NoSuchAlgorithmException, PbadException -
createAttribute
protected abstract SignatureAttribute<Encod> createAttribute(byte[] encodedAttribute) throws CadesSignatureException, SignatureAttributeException
-