@Plugin(name="KeyStore", category="Core", printObject=true) public class KeyStoreConfiguration extends AbstractKeyStoreConfiguration
LOGGER
Constructor and Description |
---|
KeyStoreConfiguration(String location,
char[] password,
String keyStoreType,
String keyManagerFactoryAlgorithm)
Deprecated.
|
KeyStoreConfiguration(String location,
PasswordProvider passwordProvider,
String keyStoreType,
String keyManagerFactoryAlgorithm) |
KeyStoreConfiguration(String location,
String password,
String keyStoreType,
String keyManagerFactoryAlgorithm)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static KeyStoreConfiguration |
createKeyStoreConfiguration(String location,
char[] password,
String keyStoreType,
String keyManagerFactoryAlgorithm)
|
static KeyStoreConfiguration |
createKeyStoreConfiguration(String location,
char[] password,
String passwordEnvironmentVariable,
String passwordFile,
String keyStoreType,
String keyManagerFactoryAlgorithm)
Creates a KeyStoreConfiguration.
|
static KeyStoreConfiguration |
createKeyStoreConfiguration(String location,
String password,
String keyStoreType,
String keyManagerFactoryAlgorithm)
Deprecated.
Use createKeyStoreConfiguration(String, char[], String, String)
|
boolean |
equals(Object obj) |
String |
getKeyManagerFactoryAlgorithm() |
int |
hashCode() |
KeyManagerFactory |
initKeyManagerFactory() |
getKeyStore, getKeyStoreType, load
clearSecrets, getLocation, getPassword, getPasswordAsCharArray, setLocation, setPassword, setPassword
public KeyStoreConfiguration(String location, PasswordProvider passwordProvider, String keyStoreType, String keyManagerFactoryAlgorithm) throws StoreConfigurationException
StoreConfigurationException
- Thrown if this instance cannot load the KeyStore.@Deprecated public KeyStoreConfiguration(String location, char[] password, String keyStoreType, String keyManagerFactoryAlgorithm) throws StoreConfigurationException
KeyStoreConfiguration(String, PasswordProvider, String, String)
insteadStoreConfigurationException
- Thrown if this instance cannot load the KeyStore.@Deprecated public KeyStoreConfiguration(String location, String password, String keyStoreType, 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") String location, @PluginAttribute(value="password",sensitive=true) char[] password, @PluginAttribute(value="passwordEnvironmentVariable") String passwordEnvironmentVariable, @PluginAttribute(value="passwordFile") String passwordFile, @PluginAttribute(value="type") String keyStoreType, @PluginAttribute(value="keyManagerFactoryAlgorithm") 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(String location, char[] password, String keyStoreType, String keyManagerFactoryAlgorithm) throws StoreConfigurationException
StoreConfigurationException
@Deprecated public static KeyStoreConfiguration createKeyStoreConfiguration(String location, String password, String keyStoreType, 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 KeyManagerFactory initKeyManagerFactory() throws NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException
public int hashCode()
hashCode
in class AbstractKeyStoreConfiguration
public boolean equals(Object obj)
equals
in class AbstractKeyStoreConfiguration
public String getKeyManagerFactoryAlgorithm()
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.