Package fr.gouv.vitam.common.timestamp
Class TimeStampSignatureWithKeystore
- java.lang.Object
-
- fr.gouv.vitam.common.timestamp.TimeStampSignatureWithKeystore
-
- All Implemented Interfaces:
TimeStampSignature
public class TimeStampSignatureWithKeystore extends java.lang.Object implements TimeStampSignature
Generate a time stamp token with a local PKCS12 keystore.
-
-
Constructor Summary
Constructors Constructor Description TimeStampSignatureWithKeystore(java.io.File pkcs12Path, char[] keystorePassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.tsp.TimeStampResponse
sign(org.bouncycastle.tsp.TimeStampRequest request)
-
-
-
Constructor Detail
-
TimeStampSignatureWithKeystore
public TimeStampSignatureWithKeystore(java.io.File pkcs12Path, char[] keystorePassword) throws java.security.KeyStoreException, java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.io.IOException, java.security.UnrecoverableKeyException
- Parameters:
pkcs12Path
- file link to pkcs12 keystorekeystorePassword
-- Throws:
java.security.KeyStoreException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.io.IOException
java.security.UnrecoverableKeyException
-
-
Method Detail
-
sign
public org.bouncycastle.tsp.TimeStampResponse sign(org.bouncycastle.tsp.TimeStampRequest request) throws org.bouncycastle.operator.OperatorCreationException, org.bouncycastle.tsp.TSPException, java.security.cert.CertificateEncodingException
- Specified by:
sign
in interfaceTimeStampSignature
- Parameters:
request
- time stamp request- Returns:
- time stamp response
- Throws:
org.bouncycastle.operator.OperatorCreationException
org.bouncycastle.tsp.TSPException
java.security.cert.CertificateEncodingException
-
-