Package eu.europa.esig.dss.token
Class JKSSignatureToken
java.lang.Object
eu.europa.esig.dss.token.AbstractSignatureTokenConnection
eu.europa.esig.dss.token.AbstractKeyStoreTokenConnection
eu.europa.esig.dss.token.KeyStoreSignatureTokenConnection
eu.europa.esig.dss.token.JKSSignatureToken
- All Implemented Interfaces:
SignatureTokenConnection
,AutoCloseable
Class holding all Java KeyStore file access logic.
-
Constructor Summary
ConstructorDescriptionJKSSignatureToken
(byte[] ksBytes, KeyStore.PasswordProtection password) Creates a SignatureTokenConnection with the provided binaries to Java KeyStore and password.JKSSignatureToken
(File ksFile, KeyStore.PasswordProtection password) Creates a SignatureTokenConnection with the provided File to Java KeyStore and password.JKSSignatureToken
(InputStream ksStream, KeyStore.PasswordProtection password) Creates a SignatureTokenConnection with the provided InputStream to Java KeyStore file and password.JKSSignatureToken
(String filepath, KeyStore.PasswordProtection password) Creates a SignatureTokenConnection with the provided filepath to Java KeyStore file and password. -
Method Summary
Methods inherited from class eu.europa.esig.dss.token.KeyStoreSignatureTokenConnection
close, getKeyProtectionParameter, getKeyStore
Methods inherited from class eu.europa.esig.dss.token.AbstractKeyStoreTokenConnection
getKey, getKey, getKeys, setKeyEntryPredicate
Methods inherited from class eu.europa.esig.dss.token.AbstractSignatureTokenConnection
createPSSParam, getSignatureInstance, sign, sign, sign, signDigest, signDigest, signDigest
-
Constructor Details
-
JKSSignatureToken
Creates a SignatureTokenConnection with the provided InputStream to Java KeyStore file and password.- Parameters:
ksStream
- the inputstreampassword
- the keystore password
-
JKSSignatureToken
Creates a SignatureTokenConnection with the provided binaries to Java KeyStore and password.- Parameters:
ksBytes
- the binariespassword
- the keystore password
-
JKSSignatureToken
Creates a SignatureTokenConnection with the provided File to Java KeyStore and password.- Parameters:
ksFile
- the keystore filepassword
- the keystore password- Throws:
IOException
- if an error occurred while reading the file
-
JKSSignatureToken
Creates a SignatureTokenConnection with the provided filepath to Java KeyStore file and password.- Parameters:
filepath
- the filepath of the keystorepassword
- the keystore password- Throws:
IOException
- if an error occurred while reading the file
-