@Plugin(name="Ssl", category="Core", printObject=true) public class SslConfiguration extends Object
Modifier and Type | Method and Description |
---|---|
void |
clearSecrets()
Clears the secret fields in this object but still allow it to operate normally.
|
static SslConfiguration |
createSSLConfiguration(String protocol,
KeyStoreConfiguration keyStoreConfig,
TrustStoreConfiguration trustStoreConfig)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.
|
static SslConfiguration |
createSSLConfiguration(String protocol,
KeyStoreConfiguration keyStoreConfig,
TrustStoreConfiguration trustStoreConfig,
boolean verifyHostName)
Creates an SslConfiguration from a KeyStoreConfiguration and a TrustStoreConfiguration.
|
boolean |
equals(Object obj) |
KeyStoreConfiguration |
getKeyStoreConfig() |
String |
getProtocol() |
SSLContext |
getSslContext() |
SSLServerSocketFactory |
getSslServerSocketFactory() |
SSLSocketFactory |
getSslSocketFactory() |
TrustStoreConfiguration |
getTrustStoreConfig() |
int |
hashCode() |
boolean |
isVerifyHostName() |
public void clearSecrets()
public SSLSocketFactory getSslSocketFactory()
public SSLServerSocketFactory getSslServerSocketFactory()
@PluginFactory public static SslConfiguration createSSLConfiguration(@PluginAttribute(value="protocol") String protocol, @PluginElement(value="KeyStore") KeyStoreConfiguration keyStoreConfig, @PluginElement(value="TrustStore") TrustStoreConfiguration trustStoreConfig)
protocol
- The protocol, see http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SSLContextkeyStoreConfig
- The KeyStoreConfiguration.trustStoreConfig
- The TrustStoreConfiguration.public static SslConfiguration createSSLConfiguration(@PluginAttribute(value="protocol") String protocol, @PluginElement(value="KeyStore") KeyStoreConfiguration keyStoreConfig, @PluginElement(value="TrustStore") TrustStoreConfiguration trustStoreConfig, @PluginAttribute(value="verifyHostName") boolean verifyHostName)
protocol
- The protocol, see http://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#SSLContextkeyStoreConfig
- The KeyStoreConfiguration.trustStoreConfig
- The TrustStoreConfiguration.verifyHostName
- whether or not to perform host name verificationpublic KeyStoreConfiguration getKeyStoreConfig()
public TrustStoreConfiguration getTrustStoreConfig()
public SSLContext getSslContext()
public String getProtocol()
public boolean isVerifyHostName()
Copyright © 1999-2021 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.