|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.internet2.middleware.grouperClient.ssl.EasySslSocketFactory
public class EasySslSocketFactory
Apache code for SSL that doesnt fail with self-signed certs
| Nested Class Summary | |
|---|---|
static class |
EasySslSocketFactory.EasyX509TrustManager
jakarta code for SSL that doesnt fail with self-signed certs |
| Constructor Summary | |
|---|---|
EasySslSocketFactory()
|
|
| Method Summary | |
|---|---|
Socket |
createSocket(Socket socket,
String host,
int port,
boolean autoClose)
Returns a socket connected to the given host that is layered over an existing socket. |
Socket |
createSocket(String host,
int port)
Gets a new socket connection to the given host. |
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort)
Gets a new socket connection to the given host. |
Socket |
createSocket(String host,
int port,
InetAddress clientHost,
int clientPort,
HttpConnectionParams arg4)
Gets a new socket connection to the given host. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EasySslSocketFactory()
| Method Detail |
|---|
public Socket createSocket(String host,
int port,
InetAddress clientHost,
int clientPort)
throws IOException,
UnknownHostException
ProtocolSocketFactory
createSocket in interface ProtocolSocketFactoryhost - the host name/IPport - the port on the hostclientHost - the local host name/IP to bind the socket toclientPort - the port on the local machine
IOException - if an I/O error occurs while creating the socket
UnknownHostException - if the IP address of the host cannot be
determinedProtocolSocketFactory.createSocket(java.lang.String,int,java.net.InetAddress,int)
public Socket createSocket(String host,
int port)
throws IOException,
UnknownHostException
ProtocolSocketFactory
createSocket in interface ProtocolSocketFactoryhost - the host name/IPport - the port on the host
IOException - if an I/O error occurs while creating the socket
UnknownHostException - if the IP address of the host cannot be
determinedProtocolSocketFactory.createSocket(java.lang.String,int)
public Socket createSocket(Socket socket,
String host,
int port,
boolean autoClose)
throws IOException,
UnknownHostException
SecureProtocolSocketFactory
createSocket in interface SecureProtocolSocketFactorysocket - the existing sockethost - the host name/IPport - the port on the hostautoClose - a flag for closing the underling socket when the created
socket is closed
IOException - if an I/O error occurs while creating the socket
UnknownHostException - if the IP address of the host cannot be
determinedSecureProtocolSocketFactory.createSocket(java.net.Socket,java.lang.String,int,boolean)
public Socket createSocket(String host,
int port,
InetAddress clientHost,
int clientPort,
HttpConnectionParams arg4)
throws IOException,
UnknownHostException,
ConnectTimeoutException
ProtocolSocketFactory
createSocket in interface ProtocolSocketFactoryhost - the host name/IPport - the port on the hostclientHost - the local host name/IP to bind the socket toclientPort - the port on the local machinearg4 - Http connection parameters
IOException - if an I/O error occurs while creating the socket
UnknownHostException - if the IP address of the host cannot be
determined
ConnectTimeoutException - if socket cannot be connected within the
given time limitorg.apache.commons.httpclient.protocol.ProtocolSocketFactory#createSocket(java.lang.String, int, java.net.InetAddress, int, org.apache.commons.httpclient.params.HttpConnectionParams)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||