Package mireka.pop

Class JsseDefaultTlsConfiguration

  • All Implemented Interfaces:
    TlsConfiguration

    public class JsseDefaultTlsConfiguration
    extends Object
    implements TlsConfiguration
    JsseDefaultTlsConfiguration delegates TLS configuration to the system property based JSSE reference implementation configuration. It enables the TLS extension if the javax.net.ssl.keyStore system property is specified, and uses the default JSSE socket factory to create new sockets.

    The minimal necessary JSSE configuration:

    • javax.net.ssl.keyStore system property must refer to a file containing a JKS keystore with the private key.
    • javax.net.ssl.keyStorePassword system property must specify the keystore password.
    See Also:
    Customizing JSSE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsseDefaultTlsConfiguration

        public JsseDefaultTlsConfiguration()
    • Method Detail

      • createSSLSocket

        public javax.net.ssl.SSLSocket createSSLSocket​(java.net.Socket socket)
                                                throws java.io.IOException
        Description copied from interface: TlsConfiguration
        Returns an SSLSocket which wraps the supplied non-secured socket. The returned socket is in server mode.
        Specified by:
        createSSLSocket in interface TlsConfiguration
        Parameters:
        socket - the socket to be wrapped
        Throws:
        java.io.IOException