public class TLSClientConfig
extends java.lang.Object
| Constructor and Description |
|---|
TLSClientConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getEnabledCipherSuites()
Returns the names of the cipher suites which could be enabled for use on this connection.
|
javax.net.ssl.KeyManager[] |
getKeyManagers()
Returns array of KeyManagers responsible for managing the key material which is used to authenticate the
local Secure Socket to its peer.
|
java.security.SecureRandom |
getSecureRandom()
Returns instance of SecureRandom used for TLS authentication.
|
javax.net.ssl.TrustManager[] |
getTrustManagers()
Returns array of TrustManagers is responsible for managing the trust material that is used when making
trust decisions, and for deciding whether credentials presented by a peer should be accepted for secure
communication.
|
void |
setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
Sets the cipher suites enabled for use on this connection.
|
void |
setKeyManagers(javax.net.ssl.KeyManager[] keyManagers)
sets array of KeyManagers responsible for managing the key material which is used to authenticate the
local Secure Socket to its peer.
|
void |
setSecureRandom(java.security.SecureRandom objSecureRandom)
Returns SecureRandom used for TLS authentication.
|
void |
setTrustManagers(javax.net.ssl.TrustManager[] trustManagers)
sets array of TrustManagers is responsible for managing the trust material that is used when making trust
decisions, and for deciding whether credentials presented by a peer should be accepted for secure
communication.
|
public java.security.SecureRandom getSecureRandom()
public void setSecureRandom(java.security.SecureRandom objSecureRandom)
objSecureRandom - instance of SecureRandompublic javax.net.ssl.KeyManager[] getKeyManagers()
public void setKeyManagers(javax.net.ssl.KeyManager[] keyManagers)
keyManagers - the keyManagers to setpublic javax.net.ssl.TrustManager[] getTrustManagers()
public void setTrustManagers(javax.net.ssl.TrustManager[] trustManagers)
trustManagers - the trustManagers to setpublic java.lang.String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(java.lang.String[] enabledCipherSuites)
enabledCipherSuites - Names of all the cipher suites to enable.