@Plugin(name="KeyStore", category="Core", printObject=true) public class KeyStoreConfiguration extends AbstractKeyStoreConfiguration
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
keyManagerFactoryAlgorithm |
LOGGER
Constructor and Description |
---|
KeyStoreConfiguration(java.lang.String location,
char[] password,
java.lang.String keyStoreType,
java.lang.String keyManagerFactoryAlgorithm)
Deprecated.
|
KeyStoreConfiguration(java.lang.String location,
PasswordProvider passwordProvider,
java.lang.String keyStoreType,
java.lang.String keyManagerFactoryAlgorithm) |
KeyStoreConfiguration(java.lang.String location,
java.lang.String password,
java.lang.String keyStoreType,
java.lang.String keyManagerFactoryAlgorithm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static KeyStoreConfiguration |
createKeyStoreConfiguration(java.lang.String location,
char[] password,
java.lang.String keyStoreType,
java.lang.String keyManagerFactoryAlgorithm)
|
static KeyStoreConfiguration |
createKeyStoreConfiguration(java.lang.String location,
char[] password,
java.lang.String passwordEnvironmentVariable,
java.lang.String passwordFile,
java.lang.String keyStoreType,
java.lang.String keyManagerFactoryAlgorithm)
Creates a KeyStoreConfiguration.
|
static KeyStoreConfiguration |
createKeyStoreConfiguration(java.lang.String location,
java.lang.String password,
java.lang.String keyStoreType,
java.lang.String keyManagerFactoryAlgorithm)
Deprecated.
Use createKeyStoreConfiguration(String, char[], String, String)
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKeyManagerFactoryAlgorithm() |
int |
hashCode() |
javax.net.ssl.KeyManagerFactory |
initKeyManagerFactory() |
getKeyStore, getKeyStoreType, load
clearSecrets, getLocation, getPassword, getPasswordAsCharArray, setLocation, setPassword, setPassword
public KeyStoreConfiguration(java.lang.String location, PasswordProvider passwordProvider, java.lang.String keyStoreType, java.lang.String keyManagerFactoryAlgorithm) throws StoreConfigurationException
StoreConfigurationException
- Thrown if this instance cannot load the KeyStore.@Deprecated public KeyStoreConfiguration(java.lang.String location, char[] password, java.lang.String keyStoreType, java.lang.String keyManagerFactoryAlgorithm) throws StoreConfigurationException
KeyStoreConfiguration(String, PasswordProvider, String, String)
insteadStoreConfigurationException
- Thrown if this instance cannot load the KeyStore.@Deprecated public KeyStoreConfiguration(java.lang.String location, java.lang.String password, java.lang.String keyStoreType, java.lang.String keyManagerFactoryAlgorithm) throws StoreConfigurationException
KeyStoreConfiguration(String, PasswordProvider, String, String)
insteadStoreConfigurationException
- Thrown if this instance cannot load the KeyStore.@PluginFactory public static KeyStoreConfiguration createKeyStoreConfiguration(@PluginAttribute(value="location") java.lang.String location, @PluginAttribute(value="password",sensitive=true) char[] password, @PluginAttribute(value="passwordEnvironmentVariable") java.lang.String passwordEnvironmentVariable, @PluginAttribute(value="passwordFile") java.lang.String passwordFile, @PluginAttribute(value="type") java.lang.String keyStoreType, @PluginAttribute(value="keyManagerFactoryAlgorithm") java.lang.String keyManagerFactoryAlgorithm) throws StoreConfigurationException
location
- The location of the KeyStore, a file path, URL or resource.password
- The password to access the KeyStore.keyStoreType
- The KeyStore type, null defaults to "JKS"
.keyManagerFactoryAlgorithm
- The standard name of the requested algorithm. See the Java Secure Socket Extension Reference Guide for information about these names.StoreConfigurationException
- Thrown if this call cannot load the KeyStore.@Deprecated public static KeyStoreConfiguration createKeyStoreConfiguration(java.lang.String location, char[] password, java.lang.String keyStoreType, java.lang.String keyManagerFactoryAlgorithm) throws StoreConfigurationException
StoreConfigurationException
@Deprecated public static KeyStoreConfiguration createKeyStoreConfiguration(java.lang.String location, java.lang.String password, java.lang.String keyStoreType, java.lang.String keyManagerFactoryAlgorithm) throws StoreConfigurationException
location
- The location of the KeyStore, a file path, URL or resource.password
- The password to access the KeyStore.keyStoreType
- The KeyStore type, null defaults to "JKS"
.keyManagerFactoryAlgorithm
- The standard name of the requested algorithm. See the Java Secure Socket
Extension Reference Guide for information about these names.StoreConfigurationException
- Thrown if this call cannot load the KeyStore.public javax.net.ssl.KeyManagerFactory initKeyManagerFactory() throws java.security.NoSuchAlgorithmException, java.security.UnrecoverableKeyException, java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.UnrecoverableKeyException
java.security.KeyStoreException
public int hashCode()
hashCode
in class AbstractKeyStoreConfiguration
public boolean equals(java.lang.Object obj)
equals
in class AbstractKeyStoreConfiguration
public java.lang.String getKeyManagerFactoryAlgorithm()