Package mireka.pop
Class PrivateTlsConfiguration
- Object
-
- mireka.pop.PrivateTlsConfiguration
-
- All Implemented Interfaces:
TlsConfiguration
public class PrivateTlsConfiguration extends Object implements TlsConfiguration
TlsConfiguration stores configuration data for the TLS extension. The name of the configuration options follow the Tomcat 7 BIO SSL configuration.
-
-
Constructor Summary
Constructors Constructor Description PrivateTlsConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.SSLSocketcreateSSLSocket(java.net.Socket socket)Returns an SSLSocket which wraps the supplied non-secured socket.StringgetKeystoreFile()StringgetKeystorePass()booleanisEnabled()Returns true if TLS is enabled.voidsetEnabled(boolean tlsEnabled)voidsetKeystoreFile(String keystoreFile)voidsetKeystorePass(String keystorePass)
-
-
-
Method Detail
-
createSSLSocket
public javax.net.ssl.SSLSocket createSSLSocket(java.net.Socket socket) throws java.io.IOExceptionDescription copied from interface:TlsConfigurationReturns an SSLSocket which wraps the supplied non-secured socket. The returned socket is in server mode.- Specified by:
createSSLSocketin interfaceTlsConfiguration- Parameters:
socket- the socket to be wrapped- Throws:
java.io.IOException
-
isEnabled
public boolean isEnabled()
Description copied from interface:TlsConfigurationReturns true if TLS is enabled.- Specified by:
isEnabledin interfaceTlsConfiguration
-
setEnabled
public void setEnabled(boolean tlsEnabled)
- Category:
- GETSET
-
getKeystoreFile
public String getKeystoreFile()
- Category:
- GETSET
-
setKeystoreFile
public void setKeystoreFile(String keystoreFile)
- Category:
- GETSET
-
getKeystorePass
public String getKeystorePass()
- Category:
- GETSET
-
setKeystorePass
public void setKeystorePass(String keystorePass)
- Category:
- GETSET
-
-