org.apache.jetspeed.security.util
Class GullibleSSLSocketFactory
java.lang.Object
javax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factory
private SSLSocketFactory factory
GullibleSSLSocketFactory
protected GullibleSSLSocketFactory()
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.