public class SignatureHelper extends Object
| Constructor and Description |
|---|
SignatureHelper(File keyStoreFile,
String keyStorePassword,
String keyPassword)
Loads the keystore and obtains the private key, the public key and the associated certificate
|
SignatureHelper(File keyStoreFile,
String keyStorePassword,
String keyAlias,
String keyPassword)
Loads the keystore and obtains the private key, the public key and the associated certificate referenced by the alias.
|
SignatureHelper(InputStream keyStoreStream,
String keyStorePassword,
String keyAlias,
String keyPassword)
Loading keystore and fetching key
|
public SignatureHelper(File keyStoreFile, String keyStorePassword, String keyPassword) throws IOException
IOExceptionpublic SignatureHelper(File keyStoreFile, String keyStorePassword, String keyAlias, String keyPassword) throws IOException
keyStoreFile - file holding the JKS keystore.keyStorePassword - password of the key store itselfkeyAlias - the alias referencing the private and public key pair.keyPassword - password protecting the private keyIOExceptionpublic SignatureHelper(InputStream keyStoreStream, String keyStorePassword, String keyAlias, String keyPassword)
keyStoreStream - Stream for keystorekeyStorePassword - Password to open keystorekeyAlias - Key alias, uses first key if set to nullkeyPassword - Key passwordCopyright © 2015 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.