public class PKCS8KeyStoreLoader extends java.lang.Object implements IKeyStoreLoader
| Constructor and Description |
|---|
PKCS8KeyStoreLoader(java.lang.String pkcs8PrivateKeyPath,
java.lang.String certFilePath,
java.lang.String keyPass,
java.lang.String entryAlias)
constructs an instance of KeyStoreLoader
|
| Modifier and Type | Method and Description |
|---|---|
java.security.KeyStore |
getKeyStore()
Returns a JKS keyStore from the given private key, certificate path, key password and alias.
|
public PKCS8KeyStoreLoader(java.lang.String pkcs8PrivateKeyPath,
java.lang.String certFilePath,
java.lang.String keyPass,
java.lang.String entryAlias)
pkcs8PrivateKeyPath - - path to a private key file. Key must be in PKCS8 format,
PEM encoded and unencrypted.certFilePath - - path to certificate file. File must be PEM encoded.keyPass - - password to secure the private key within the keystore.
This will be required later to retrieve the private key
back from the keystore.entryAlias - - alias for the given entry within the keystore.public java.security.KeyStore getKeyStore()
getKeyStore in interface IKeyStoreLoaderCopyright © 2005-2022 Apache Software Foundation. All Rights Reserved.