@Plugin(name="KeyStore", category="Core", printObject=true) public class KeyStoreConfiguration extends AbstractKeyStoreConfiguration
LOGGER
Constructor and Description |
---|
KeyStoreConfiguration(String location,
String password,
String keyStoreType,
String keyManagerFactoryAlgorithm) |
Modifier and Type | Method and Description |
---|---|
static KeyStoreConfiguration |
createKeyStoreConfiguration(String location,
String password,
String keyStoreType,
String keyManagerFactoryAlgorithm)
Creates a KeyStoreConfiguration.
|
boolean |
equals(Object obj) |
int |
hashCode() |
KeyManagerFactory |
initKeyManagerFactory() |
getKeyStore, load
getLocation, getPassword, getPasswordAsCharArray, setLocation, setPassword
public KeyStoreConfiguration(String location, String password, String keyStoreType, String keyManagerFactoryAlgorithm) throws StoreConfigurationException
StoreConfigurationException
- Thrown if this instance cannot load the KeyStore.@PluginFactory public static KeyStoreConfiguration createKeyStoreConfiguration(@PluginAttribute(value="location") String location, @PluginAttribute(value="password",sensitive=true) String password, @PluginAttribute(value="type") String keyStoreType, @PluginAttribute(value="keyManagerFactoryAlgorithm") String keyManagerFactoryAlgorithm) throws StoreConfigurationException
location
- The location of the KeyStore.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
Copyright © 1999-2017. 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.