Class LdapOnPremiseSocketFactory
java.lang.Object
javax.net.SocketFactory
com.sap.core.connectivity.api.ldap.LdapOnPremiseSocketFactory
Socket factory capable of creating sockets to LDAP on premise systems.
Class name of this socket factory can be specified as a value of property
Class name of this socket factory can be specified as a value of property
java.naming.ldap.factory.socket
when establishing LdapContext
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket
(String host, int port) createSocket
(String host, int port, InetAddress localHost, int localPort) createSocket
(InetAddress host, int port) createSocket
(InetAddress address, int port, InetAddress localAddress, int localPort) static SocketFactory
Returns the default LDAP on premise socket factory.protected void
Methods inherited from class javax.net.SocketFactory
createSocket
-
Constructor Details
-
LdapOnPremiseSocketFactory
public LdapOnPremiseSocketFactory()
-
-
Method Details
-
setConnectivitySocketFactory
-
getDefault
Returns the default LDAP on premise socket factory.- Returns:
- instance of this class
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(String host, int port, InetAddress localHost, int localPort) throws IOException, UnknownHostException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException - Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-