org.rhq.enterprise.server.util.security
Class UntrustedSSLProtocolSocketFactory

java.lang.Object
  extended by org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory
      extended by org.rhq.enterprise.server.util.security.UntrustedSSLProtocolSocketFactory
All Implemented Interfaces:
org.apache.commons.httpclient.protocol.ProtocolSocketFactory, org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory

public class UntrustedSSLProtocolSocketFactory
extends org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory

For use with commons-httpclient.


Constructor Summary
UntrustedSSLProtocolSocketFactory()
           
 
Method Summary
 Socket createSocket(Socket socket, String host, int port, boolean autoClose)
           
 Socket createSocket(String host, int port)
           
 Socket createSocket(String host, int port, InetAddress clientHost, int clientPort)
           
static void register()
           
static void unregister()
           
 
Methods inherited from class org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory
createSocket, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UntrustedSSLProtocolSocketFactory

public UntrustedSSLProtocolSocketFactory()
Method Detail

register

public static void register()

unregister

public static void unregister()

createSocket

public Socket createSocket(String host,
                           int port,
                           InetAddress clientHost,
                           int clientPort)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Overrides:
createSocket in class org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(String host,
                           int port)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.ProtocolSocketFactory
Overrides:
createSocket in class org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory
Throws:
IOException
UnknownHostException

createSocket

public Socket createSocket(Socket socket,
                           String host,
                           int port,
                           boolean autoClose)
                    throws IOException,
                           UnknownHostException
Specified by:
createSocket in interface org.apache.commons.httpclient.protocol.SecureProtocolSocketFactory
Overrides:
createSocket in class org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory
Throws:
IOException
UnknownHostException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.