Package org.apache.nifi.ldap
Class LdapsSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.apache.nifi.ldap.LdapsSocketFactory
SSLSocketFactory used when connecting to a Directory Server over LDAPS.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLdapsSocketFactory(SSLSocketFactory sslSocketFactory) Creates a new LdapsSocketFactory. -
Method Summary
Modifier and TypeMethodDescriptioncreateSocket(String string, int i) createSocket(String string, int i, InetAddress ia, int i1) createSocket(InetAddress ia, int i) createSocket(InetAddress ia, int i, InetAddress ia1, int i1) createSocket(Socket socket, String string, int i, boolean bln) static SocketFactoryGets the LdapsSocketFactory that was previously initialized.String[]String[]static voidinitialize(SSLSocketFactory sslSocketFactory) Initializes the LdapsSocketFactory with the specified SSLSocketFactory.Methods inherited from class javax.net.ssl.SSLSocketFactory
createSocket
-
Field Details
-
instance
-
delegate
-
-
Constructor Details
-
LdapsSocketFactory
Creates a new LdapsSocketFactory.- Parameters:
sslSocketFactory- delegate socket factory
-
-
Method Details
-
initialize
Initializes the LdapsSocketFactory with the specified SSLSocketFactory. The specified socket factory will be used as a delegate for all subsequent instances of this class.- Parameters:
sslSocketFactory- delegate socket factory
-
getDefault
Gets the LdapsSocketFactory that was previously initialized.- Returns:
- socket factory
-
getSupportedCipherSuites
- Specified by:
getSupportedCipherSuitesin classSSLSocketFactory
-
getDefaultCipherSuites
- Specified by:
getDefaultCipherSuitesin classSSLSocketFactory
-
createSocket
- Specified by:
createSocketin classSSLSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String string, int i, InetAddress ia, int i1) throws IOException, UnknownHostException - Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
- Overrides:
createSocketin classSocketFactory- Throws:
IOException
-