edu.internet2.middleware.grouperClient.ssl
Class BlindSslSocketFactory
java.lang.Object
javax.net.SocketFactory
edu.internet2.middleware.grouperClient.ssl.BlindSslSocketFactory
public class BlindSslSocketFactory
- extends SocketFactory
BlindSSLSocketFactoryTest
Simple test to show an Active Directory (LDAP)
and HTTPS connection without verifying the
server's certificate.
From: http://blog.platinumsolutions.com/node/79
http://blog.platinumsolutions.com/files/BlindSSLSocketFactoryTest.java.txt
- Author:
- Mike McKinney, Platinum Solutions, Inc.
BlindSslSocketFactory
public BlindSslSocketFactory()
getDefault
public static SocketFactory getDefault()
- See Also:
SocketFactory.getDefault()
createSocket
public Socket createSocket(String arg0,
int arg1)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
- See Also:
SocketFactory.createSocket(java.lang.String, int)
createSocket
public Socket createSocket(InetAddress arg0,
int arg1)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
- See Also:
SocketFactory.createSocket(java.net.InetAddress, int)
createSocket
public Socket createSocket(String arg0,
int arg1,
InetAddress arg2,
int arg3)
throws IOException,
UnknownHostException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
UnknownHostException
- See Also:
SocketFactory.createSocket(java.lang.String, int,
java.net.InetAddress, int)
createSocket
public Socket createSocket(InetAddress arg0,
int arg1,
InetAddress arg2,
int arg3)
throws IOException
- Specified by:
createSocket
in class SocketFactory
- Throws:
IOException
- See Also:
SocketFactory.createSocket(java.net.InetAddress, int,
java.net.InetAddress, int)
main
public static void main(String[] args)
- Our test...
- Parameters:
args
-