Package fr.gouv.vitam.common.timestamp
Class TimeStampSignatureWithKeystore
java.lang.Object
fr.gouv.vitam.common.timestamp.TimeStampSignatureWithKeystore
- All Implemented Interfaces:
TimeStampSignature
Generate a time stamp token with a local PKCS12 keystore.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.tsp.TimeStampResponsesign(org.bouncycastle.tsp.TimeStampRequest request)
-
Constructor Details
-
TimeStampSignatureWithKeystore
public TimeStampSignatureWithKeystore(File pkcs12Path, char[] keystorePassword) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException, UnrecoverableKeyException - Parameters:
pkcs12Path- file link to pkcs12 keystorekeystorePassword-- Throws:
KeyStoreExceptionCertificateExceptionNoSuchAlgorithmExceptionIOExceptionUnrecoverableKeyException
-
-
Method Details
-
sign
public org.bouncycastle.tsp.TimeStampResponse sign(org.bouncycastle.tsp.TimeStampRequest request) throws org.bouncycastle.operator.OperatorCreationException, org.bouncycastle.tsp.TSPException, CertificateEncodingException - Specified by:
signin interfaceTimeStampSignature- Parameters:
request- time stamp request- Returns:
- time stamp response
- Throws:
org.bouncycastle.operator.OperatorCreationExceptionorg.bouncycastle.tsp.TSPExceptionCertificateEncodingException
-