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
-
Method Summary
Modifier and TypeMethodDescriptionorg.bouncycastle.tsp.TimeStampResponse
sign
(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:
KeyStoreException
CertificateException
NoSuchAlgorithmException
IOException
UnrecoverableKeyException
-
-
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:
sign
in interfaceTimeStampSignature
- Parameters:
request
- time stamp request- Returns:
- time stamp response
- Throws:
org.bouncycastle.operator.OperatorCreationException
org.bouncycastle.tsp.TSPException
CertificateEncodingException
-