Package io.trino.plugin.base.ldap
Class LdapSslSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- io.trino.plugin.base.ldap.LdapSslSocketFactory
-
public final class LdapSslSocketFactory extends SocketFactory
-
-
Constructor Summary
Constructors Constructor Description LdapSslSocketFactory(SocketFactory socketFactory)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketcreateSocket()SocketcreateSocket(String host, int port)SocketcreateSocket(String host, int port, InetAddress localHost, int localPort)SocketcreateSocket(InetAddress host, int port)SocketcreateSocket(InetAddress address, int port, InetAddress localAddress, int localPort)static SocketFactorygetDefault()static voidsetSslContextForCurrentThread(SSLContext sslContext)
-
-
-
Constructor Detail
-
LdapSslSocketFactory
public LdapSslSocketFactory(SocketFactory socketFactory)
-
-
Method Detail
-
createSocket
public Socket createSocket() throws IOException
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress host, int port) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
getDefault
public static SocketFactory getDefault()
-
setSslContextForCurrentThread
public static void setSslContextForCurrentThread(SSLContext sslContext)
-
-