Class LDAPSSLSocketFactory
- java.lang.Object
-
- javax.net.SocketFactory
-
- org.oa4mp.server.loader.oauth2.servlet.LDAPSSLSocketFactory
-
public class LDAPSSLSocketFactory extends SocketFactory
A factory that creates SSL sockets as required by LDAP.Created by Jeff Gaynor
on 7/13/17 at 11:02 AM
-
-
Field Summary
Fields Modifier and Type Field Description protected static edu.uiuc.ncsa.security.util.ssl.SSLConfiguration
sslConfiguration
-
Constructor Summary
Constructors Constructor Description LDAPSSLSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clear()
Socket
createSocket(String address, int port)
Socket
createSocket(String address, int port, InetAddress localAddress, int localPort)
Socket
createSocket(InetAddress address, int port)
Socket
createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
protected SSLContext
getContext()
static SocketFactory
getDefault()
protected KeyManagerFactory
getKeyManagerFactory()
static LDAPConfiguration
getLdapConfiguration()
protected SSLSocketFactory
getSF()
protected org.apache.http.conn.ssl.SSLConnectionSocketFactory
getSocketFactory()
static edu.uiuc.ncsa.security.util.ssl.SSLConfiguration
getSslConfiguration()
protected static void
say(String x)
static void
setLdapConfiguration(LDAPConfiguration ldapConfiguration)
-
Methods inherited from class javax.net.SocketFactory
createSocket
-
-
-
-
Method Detail
-
say
protected static void say(String x)
-
getDefault
public static SocketFactory getDefault()
-
createSocket
public Socket createSocket(InetAddress address, int port) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
getContext
protected SSLContext getContext() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getSF
protected SSLSocketFactory getSF() throws GeneralSecurityException, IOException
- Throws:
GeneralSecurityException
IOException
-
getSocketFactory
protected org.apache.http.conn.ssl.SSLConnectionSocketFactory getSocketFactory()
-
getKeyManagerFactory
protected KeyManagerFactory getKeyManagerFactory() throws IOException, GeneralSecurityException
- Throws:
IOException
GeneralSecurityException
-
createSocket
public Socket createSocket(String address, int port) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
createSocket
public Socket createSocket(String address, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
UnknownHostException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
- Specified by:
createSocket
in classSocketFactory
- Throws:
IOException
-
clear
public static void clear()
-
getSslConfiguration
public static edu.uiuc.ncsa.security.util.ssl.SSLConfiguration getSslConfiguration()
-
getLdapConfiguration
public static LDAPConfiguration getLdapConfiguration()
-
setLdapConfiguration
public static void setLdapConfiguration(LDAPConfiguration ldapConfiguration)
-
-