public class JsseDefaultTlsConfiguration extends Object implements TlsConfiguration
The minimal necessary JSSE configuration:
Constructor and Description |
---|
JsseDefaultTlsConfiguration() |
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.
|
boolean |
isEnabled()
Returns true if TLS is enabled.
|
public boolean isEnabled()
TlsConfiguration
isEnabled
in interface TlsConfiguration
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