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
TlsConfiguration
createSSLSocket
in interface TlsConfiguration
socket
- the socket to be wrappedjava.io.IOException
public boolean isEnabled()
TlsConfiguration
isEnabled
in interface TlsConfiguration
public void setEnabled(boolean tlsEnabled)
public String getKeystoreFile()
public void setKeystoreFile(String keystoreFile)
public String getKeystorePass()
public void setKeystorePass(String keystorePass)