org.apache.jetspeed.security.util
Class GullibleSSLSocketFactory

java.lang.Object
  extended by javax.net.SocketFactory
      extended by javax.net.ssl.SSLSocketFactory
          extended by org.apache.jetspeed.security.util.GullibleSSLSocketFactory

public class GullibleSSLSocketFactory
extends SSLSocketFactory

Socket Factory for SSL connections which do not provide an authentication This is used to connect to servers where we are just interested in an encypted tunnel, and not to verify that both parties trust each other.

Version:
$Id: GullibleSSLSocketFactory.java 516448 2007-03-09 16:25:47Z ate $
Author:
Berry van Halderen

Nested Class Summary
(package private)  class GullibleSSLSocketFactory.GullibleTrustManager
           
 
Field Summary
private  SSLSocketFactory factory
           
 
Constructor Summary
protected GullibleSSLSocketFactory()
           
 
Method Summary
 Socket createSocket(InetAddress host, int port)
           
 Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
           
 Socket createSocket(Socket s, String host, int port, boolean autoClose)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress localAddress, int localPort)
           
static SocketFactory getDefault()
           
 String[] getDefaultCipherSuites()
           
 String[] getSupportedCipherSuites()
           
 
Methods inherited from class javax.net.SocketFactory
createSocket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

factory

private SSLSocketFactory factory
Constructor Detail

GullibleSSLSocketFactory

protected GullibleSSLSocketFactory()
Method Detail

getDefault

public static SocketFactory getDefault()

getDefaultCipherSuites

public String[] getDefaultCipherSuites()
Specified by:
getDefaultCipherSuites in class SSLSocketFactory

getSupportedCipherSuites

public String[] getSupportedCipherSuites()
Specified by:
getSupportedCipherSuites in class SSLSocketFactory

createSocket

public Socket createSocket(Socket s,
                           String host,
                           int port,
                           boolean autoClose)
                    throws IOException
Specified by:
createSocket in class SSLSocketFactory
Throws:
IOException

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in class SocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(InetAddress host,
                           int port)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException

createSocket

public Socket createSocket(InetAddress address,
                           int port,
                           InetAddress localAddress,
                           int localPort)
                    throws IOException
Specified by:
createSocket in class SocketFactory
Throws:
IOException


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.