Package mireka.pop
Interface TlsConfiguration
-
- All Known Implementing Classes:
JsseDefaultTlsConfiguration,PrivateTlsConfiguration
public interface TlsConfigurationTlsConfiguration provides information about whether the TLS extension is enabled and provides a factory method which creates configured SSLSocket instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.net.ssl.SSLSocketcreateSSLSocket(java.net.Socket socket)Returns an SSLSocket which wraps the supplied non-secured socket.booleanisEnabled()Returns true if TLS is enabled.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Returns true if TLS is enabled.
-
createSSLSocket
javax.net.ssl.SSLSocket createSSLSocket(java.net.Socket socket) throws java.io.IOExceptionReturns an SSLSocket which wraps the supplied non-secured socket. The returned socket is in server mode.- Parameters:
socket- the socket to be wrapped- Throws:
java.io.IOException
-
-