Class DefaultTlsSocketPlugin

    • Constructor Detail

      • DefaultTlsSocketPlugin

        public DefaultTlsSocketPlugin()
    • Method Detail

      • getSocketFactory

        public SSLSocketFactory getSocketFactory​(Options options)
                                          throws SQLException
        Description copied from interface: TlsSocketPlugin
        Get socket factory.
        Specified by:
        getSocketFactory in interface TlsSocketPlugin
        Parameters:
        options - connection string option. Non standard option are stored in `nonMappedOptions` if any specific option is needed.
        Returns:
        custom SSL socket factory
        Throws:
        SQLException - if socket factory configuration failed.
      • verify

        public void verify​(String host,
                           SSLSession session,
                           Options options,
                           long serverThreadId)
                    throws SSLException
        Description copied from interface: TlsSocketPlugin
        Host name verifier implementation.
        Specified by:
        verify in interface TlsSocketPlugin
        Parameters:
        host - hostname
        session - ssl session
        options - connection string option. Non standard option are stored in * `nonMappedOptions` if any specific option is needed.
        serverThreadId - current server threadId
        Throws:
        SSLException - if verification fail