public class PrivateTlsConfiguration extends Object implements TlsConfiguration
| Constructor and Description |
|---|
PrivateTlsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
javax.net.ssl.SSLSocket |
createSSLSocket(java.net.Socket socket)
Returns an SSLSocket which wraps the supplied non-secured socket.
|
String |
getKeystoreFile() |
String |
getKeystorePass() |
boolean |
isEnabled()
Returns true if TLS is enabled.
|
void |
setEnabled(boolean tlsEnabled) |
void |
setKeystoreFile(String keystoreFile) |
void |
setKeystorePass(String keystorePass) |
public javax.net.ssl.SSLSocket createSSLSocket(java.net.Socket socket)
throws java.io.IOException
TlsConfigurationcreateSSLSocket in interface TlsConfigurationsocket - the socket to be wrappedjava.io.IOExceptionpublic boolean isEnabled()
TlsConfigurationisEnabled in interface TlsConfigurationpublic void setEnabled(boolean tlsEnabled)
public String getKeystoreFile()
public void setKeystoreFile(String keystoreFile)
public String getKeystorePass()
public void setKeystorePass(String keystorePass)