public class KeyStoreConfig extends Object
todo: This functionality should be moved into the commons project There is just enough functionality here to support OpenAM boot.json
| Constructor and Description |
|---|
KeyStoreConfig() |
| Modifier and Type | Method and Description |
|---|---|
char[] |
getKeyPassword()
Get the key password used to unlock key entries.
|
String |
getKeyPasswordFile()
Get the path the key password file.
|
String |
getKeyStoreFile()
Get the path to the keystore.
|
char[] |
getKeyStorePassword()
Get the keystore password.
|
String |
getKeyStorePasswordFile()
Get the path to the file used to unlock the keystore.
|
String |
getKeyStoreType()
Get the keystore type.
|
String |
getProviderArg()
Get the provider class name as a string.
|
String |
getProviderClass()
Get the provider class name string.
|
KeyStore |
loadKeyStore()
Initialize and load the keystore described by this configuration
todo: This is just enough to get the current keystore.jceks opened
When this is moved to commons the functionality should be expanded to open all keystore types
There are a number of possible exceptions that can be generated - they are consolidated
to a single type and the underlying exception is wrapped.
|
void |
setKeyPasswordFile(String keyPasswordFile)
Set the path the file that holds the per entry password.
|
void |
setKeyStoreFile(String keyStoreFile)
Set the keystore file path.
|
void |
setKeyStorePasswordFile(String keyStorePasswordFile)
Set path the file that contains the password used to unlock the keystore.
|
void |
setKeyStoreType(String keyStoreType)
Set the keystore type (e.g.
|
void |
setProviderArg(String providerArg)
Set provider arg.
|
void |
setProviderClass(String providerClass)
set the provider class name string.
|
public String getKeyStorePasswordFile()
public void setKeyStorePasswordFile(String keyStorePasswordFile)
keyStorePasswordFile - path to keystore password filepublic String getKeyPasswordFile()
public void setKeyPasswordFile(String keyPasswordFile)
keyPasswordFile - set the path to file that holds the per key passwordpublic String getKeyStoreType()
public void setKeyStoreType(String keyStoreType)
keyStoreType - set the keystore typepublic String getKeyStoreFile()
public void setKeyStoreFile(String keyStoreFile)
keyStoreFile - the keystore file pathpublic String getProviderClass()
public void setProviderClass(String providerClass)
providerClass - - provider class. This is optional for most providerspublic String getProviderArg()
public void setProviderArg(String providerArg)
providerArg - optional provider arument used to create provider instancespublic char[] getKeyStorePassword()
throws IOException
IOException - IF the keystore password file can not be openedpublic char[] getKeyPassword()
throws IOException
IOException - If the key password file can not be openedpublic KeyStore loadKeyStore() throws KeyStoreException
KeyStoreException - if the keystore can not be opened or initialized.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.