edu.internet2.middleware.grouperClient.ssl
Class BlindSslSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by 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.

Constructor Summary
BlindSslSocketFactory()
           
 
Method Summary
 Socket createSocket(InetAddress arg0, int arg1)
           
 Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3)
           
 Socket createSocket(String arg0, int arg1)
           
 Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3)
           
static SocketFactory getDefault()
           
static void main(String[] args)
          Our test...
 
Methods inherited from class javax.net.SocketFactory
createSocket
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlindSslSocketFactory

public BlindSslSocketFactory()
Method Detail

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 -