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.SSLConfigurationsslConfiguration
-
Constructor Summary
Constructors Constructor Description LDAPSSLSocketFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidclear()SocketcreateSocket(String address, int port)SocketcreateSocket(String address, int port, InetAddress localAddress, int localPort)SocketcreateSocket(InetAddress address, int port)SocketcreateSocket(InetAddress address, int port, InetAddress localAddress, int localPort)protected SSLContextgetContext()static SocketFactorygetDefault()protected KeyManagerFactorygetKeyManagerFactory()static org.oa4mp.delegation.server.server.config.LDAPConfigurationgetLdapConfiguration()protected SSLSocketFactorygetSF()protected org.apache.http.conn.ssl.SSLConnectionSocketFactorygetSocketFactory()static edu.uiuc.ncsa.security.util.ssl.SSLConfigurationgetSslConfiguration()protected static voidsay(String x)static voidsetLdapConfiguration(org.oa4mp.delegation.server.server.config.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:
createSocketin classSocketFactory- Throws:
IOException
-
getContext
protected SSLContext getContext() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
getSF
protected SSLSocketFactory getSF() throws GeneralSecurityException, IOException
- Throws:
GeneralSecurityExceptionIOException
-
getSocketFactory
protected org.apache.http.conn.ssl.SSLConnectionSocketFactory getSocketFactory()
-
getKeyManagerFactory
protected KeyManagerFactory getKeyManagerFactory() throws IOException, GeneralSecurityException
- Throws:
IOExceptionGeneralSecurityException
-
createSocket
public Socket createSocket(String address, int port) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
createSocket
public Socket createSocket(String address, int port, InetAddress localAddress, int localPort) throws IOException, UnknownHostException
- Specified by:
createSocketin classSocketFactory- Throws:
IOExceptionUnknownHostException
-
createSocket
public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) throws IOException
- Specified by:
createSocketin classSocketFactory- Throws:
IOException
-
clear
public static void clear()
-
getSslConfiguration
public static edu.uiuc.ncsa.security.util.ssl.SSLConfiguration getSslConfiguration()
-
getLdapConfiguration
public static org.oa4mp.delegation.server.server.config.LDAPConfiguration getLdapConfiguration()
-
setLdapConfiguration
public static void setLdapConfiguration(org.oa4mp.delegation.server.server.config.LDAPConfiguration ldapConfiguration)
-
-