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
public class JKSSignatureToken extends KeyStoreSignatureTokenConnection
Class holding all Java KeyStore file access logic.
-
-
Field Summary
-
Fields inherited from class eu.europa.esig.dss.token.AbstractSignatureTokenConnection
LOG
-
-
Constructor Summary
Constructors Constructor Description JKSSignatureToken(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
-
Methods inherited from class eu.europa.esig.dss.token.AbstractKeyStoreTokenConnection
getKey, getKey, getKeys
-
Methods inherited from class eu.europa.esig.dss.token.AbstractSignatureTokenConnection
createPSSParam, getSignatureInstance, sign, sign, signDigest, signDigest
-
-
-
-
Constructor Detail
-
JKSSignatureToken
public JKSSignatureToken(InputStream ksStream, KeyStore.PasswordProtection password)
Creates a SignatureTokenConnection with the provided InputStream to Java KeyStore file and password.- Parameters:
ksStream- the inputstreampassword- the keystore password
-
JKSSignatureToken
public JKSSignatureToken(byte[] ksBytes, KeyStore.PasswordProtection password)Creates a SignatureTokenConnection with the provided binaries to Java KeyStore and password.- Parameters:
ksBytes- the binariespassword- the keystore password
-
JKSSignatureToken
public JKSSignatureToken(File ksFile, KeyStore.PasswordProtection password) throws IOException
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
public JKSSignatureToken(String filepath, KeyStore.PasswordProtection password) throws IOException
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
-
-