public class KeystoreManager extends Object
Constructor and Description |
---|
KeystoreManager(String keyStoreType,
String keyStoreFile,
String keyStorePassword)
Constructs an instance of the KeystoreManager.
|
Modifier and Type | Method and Description |
---|---|
Certificate |
getCertificate(String certAlias)
Gets the certificate from the KeyStore with the given alias.
|
PrivateKey |
getPrivateKey(String keyAlias,
String privateKeyPassword)
Gets the Private Key from the KeyStore with the given alias.
|
PublicKey |
getPublicKey(String keyAlias)
Gets the Public Key from the KeyStore with the given alias.
|
X509Certificate |
getX509Certificate(String certAlias)
Gets a X509Certificate from the KeyStore with the given alias.
|
public KeystoreManager(String keyStoreType, String keyStoreFile, String keyStorePassword)
keyStoreType
- The type of Java KeyStore.keyStoreFile
- The file path to the KeyStore.keyStorePassword
- The password for the KeyStore.public Certificate getCertificate(String certAlias)
certAlias
- The Certificate Alias.public X509Certificate getX509Certificate(String certAlias)
certAlias
- The Certificate Alias.public PublicKey getPublicKey(String keyAlias)
keyAlias
- The Public Key Alias.public PrivateKey getPrivateKey(String keyAlias, String privateKeyPassword)
keyAlias
- The Private Key Alias.privateKeyPassword
- The private key passwordCopyright 2011-2015 ForgeRock AS.