public class TransportSslOptions extends TransportOptions
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_CONTEXT_PROTOCOL |
static List<String> |
DEFAULT_DISABLED_PROTOCOLS |
static int |
DEFAULT_SSL_PORT |
static String |
DEFAULT_STORE_TYPE |
static boolean |
DEFAULT_TRUST_ALL |
static boolean |
DEFAULT_VERIFY_HOST |
static TransportSslOptions |
INSTANCE |
DEFAULT_CONNECT_TIMEOUT, DEFAULT_RECEIVE_BUFFER_SIZE, DEFAULT_SEND_BUFFER_SIZE, DEFAULT_SO_LINGER, DEFAULT_SO_TIMEOUT, DEFAULT_TCP_KEEP_ALIVE, DEFAULT_TCP_NO_DELAY, DEFAULT_TCP_PORT, DEFAULT_TRAFFIC_CLASS| Constructor and Description |
|---|
TransportSslOptions() |
| Modifier and Type | Method and Description |
|---|---|
TransportSslOptions |
clone() |
protected TransportSslOptions |
copyOptions(TransportSslOptions copy) |
String |
getContextProtocol() |
int |
getDefaultSslPort() |
String[] |
getDisabledCipherSuites() |
String[] |
getDisabledProtocols() |
String[] |
getEnabledCipherSuites() |
String[] |
getEnabledProtocols() |
String |
getKeyAlias() |
String |
getKeyStoreLocation() |
String |
getKeyStorePassword() |
String |
getStoreType() |
String |
getTrustStoreLocation() |
String |
getTrustStorePassword() |
boolean |
isTrustAll() |
boolean |
isVerifyHost() |
void |
setContextProtocol(String contextProtocol)
The protocol value to use when creating an SSLContext via
SSLContext.getInstance(protocol).
|
void |
setDefaultSslPort(int defaultSslPort) |
void |
setDisabledCipherSuites(String[] disabledCipherSuites) |
void |
setDisabledProtocols(String[] disabledProtocols)
The protocols to be disable.
|
void |
setEnabledCipherSuites(String[] enabledCipherSuites) |
void |
setEnabledProtocols(String[] enabledProtocols)
The protocols to be set as enabled.
|
void |
setKeyAlias(String keyAlias) |
void |
setKeyStoreLocation(String keyStoreLocation)
Sets the location on disk of the key store to use.
|
void |
setKeyStorePassword(String keyStorePassword) |
void |
setStoreType(String storeType) |
void |
setTrustAll(boolean trustAll) |
void |
setTrustStoreLocation(String trustStoreLocation) |
void |
setTrustStorePassword(String trustStorePassword) |
void |
setVerifyHost(boolean verifyHost) |
copyOptions, getConnectTimeout, getDefaultTcpPort, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSoTimeout, getTrafficClass, isTcpKeepAlive, isTcpNoDelay, setConnectTimeout, setDefaultTcpPort, setReceiveBufferSize, setSendBufferSize, setSoLinger, setSoTimeout, setTcpKeepAlive, setTcpNoDelay, setTrafficClasspublic static final String DEFAULT_STORE_TYPE
public static final String DEFAULT_CONTEXT_PROTOCOL
public static final boolean DEFAULT_TRUST_ALL
public static final boolean DEFAULT_VERIFY_HOST
public static final int DEFAULT_SSL_PORT
public static final TransportSslOptions INSTANCE
public String getKeyStoreLocation()
public void setKeyStoreLocation(String keyStoreLocation)
keyStoreLocation - the keyStoreLocation to use to create the key manager.public String getKeyStorePassword()
public void setKeyStorePassword(String keyStorePassword)
keyStorePassword - the keyStorePassword to setpublic String getTrustStoreLocation()
public void setTrustStoreLocation(String trustStoreLocation)
trustStoreLocation - the trustStoreLocation to setpublic String getTrustStorePassword()
public void setTrustStorePassword(String trustStorePassword)
trustStorePassword - the trustStorePassword to setpublic String getStoreType()
public void setStoreType(String storeType)
storeType - the format that the store files are encoded in.public String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String[] enabledCipherSuites)
enabledCipherSuites - the enabledCipherSuites to setpublic String[] getDisabledCipherSuites()
public void setDisabledCipherSuites(String[] disabledCipherSuites)
disabledCipherSuites - the disabledCipherSuites to setpublic String[] getEnabledProtocols()
public void setEnabledProtocols(String[] enabledProtocols)
enabledProtocols - the enabled protocols to set, or null if the defaults should be used.public String[] getDisabledProtocols()
public void setDisabledProtocols(String[] disabledProtocols)
disabledProtocols - the protocols to disable, or null if none should be.public String getContextProtocol()
public void setContextProtocol(String contextProtocol)
contextProtocol - the context protocol to use.public boolean isTrustAll()
public void setTrustAll(boolean trustAll)
trustAll - the trustAll to setpublic boolean isVerifyHost()
public void setVerifyHost(boolean verifyHost)
verifyHost - the verifyHost to setpublic String getKeyAlias()
public void setKeyAlias(String keyAlias)
keyAlias - the key alias to usepublic int getDefaultSslPort()
public void setDefaultSslPort(int defaultSslPort)
public TransportSslOptions clone()
clone in class TransportOptionsprotected TransportSslOptions copyOptions(TransportSslOptions copy)
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.