Class DefaultTlsSocketPlugin

  • All Implemented Interfaces:
    TlsSocketPlugin

    public class DefaultTlsSocketPlugin
    extends java.lang.Object
    implements TlsSocketPlugin
    Default TLS socket plugin
    • Field Detail

      • logger

        private static final Logger logger
    • Constructor Detail

      • DefaultTlsSocketPlugin

        public DefaultTlsSocketPlugin()
    • Method Detail

      • loadClientCerts

        private static javax.net.ssl.KeyManager loadClientCerts​(java.lang.String keyStoreUrl,
                                                                java.lang.String keyStorePassword,
                                                                java.lang.String keyPassword,
                                                                java.lang.String storeType,
                                                                ExceptionFactory exceptionFactory)
                                                         throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • loadFromUrl

        private static java.io.InputStream loadFromUrl​(java.lang.String keyStoreUrl)
                                                throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • getInputStreamFromPath

        private static java.io.InputStream getInputStreamFromPath​(java.lang.String path)
                                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • type

        public java.lang.String type()
        Description copied from interface: TlsSocketPlugin
        plugin type.
        Specified by:
        type in interface TlsSocketPlugin
        Returns:
        plugin type
      • verify

        public void verify​(java.lang.String host,
                           javax.net.ssl.SSLSession session,
                           long serverThreadId)
                    throws javax.net.ssl.SSLException
        Description copied from interface: TlsSocketPlugin
        Host name verifier implementation.
        Specified by:
        verify in interface TlsSocketPlugin
        Parameters:
        host - hostname
        session - ssl session
        serverThreadId - current server threadId
        Throws:
        javax.net.ssl.SSLException - if verification fail