Interface TlsSocketPlugin

  • All Known Implementing Classes:
    DefaultTlsSocketPlugin

    public interface TlsSocketPlugin
    TLS Socket interface plugin
    • Method Detail

      • type

        java.lang.String type()
        plugin type.
        Returns:
        plugin type
      • getTrustManager

        javax.net.ssl.TrustManager[] getTrustManager​(Configuration conf,
                                                     ExceptionFactory exceptionFactory,
                                                     HostAddress hostAddress)
                                              throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • getKeyManager

        javax.net.ssl.KeyManager[] getKeyManager​(Configuration conf,
                                                 ExceptionFactory exceptionFactory)
                                          throws java.sql.SQLException
        Throws:
        java.sql.SQLException
      • createSocket

        default javax.net.ssl.SSLSocket createSocket​(java.net.Socket socket,
                                                     javax.net.ssl.SSLSocketFactory sslSocketFactory)
                                              throws java.io.IOException
        Returns a socket layered over an existing socket negotiating the use of SSL over an existing socket.
        Parameters:
        socket - existing socket
        sslSocketFactory - SSL socket factory
        Returns:
        SSL socket
        Throws:
        java.io.IOException - if any socket error occurs.
      • verify

        void verify​(java.lang.String host,
                    javax.net.ssl.SSLSession sslSession,
                    long serverThreadId)
             throws javax.net.ssl.SSLException
        Host name verifier implementation.
        Parameters:
        host - hostname
        sslSession - ssl session
        serverThreadId - current server threadId
        Throws:
        javax.net.ssl.SSLException - if verification fail