|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.net.SocketFactory
javax.net.ssl.SSLSocketFactory
org.glite.security.trustmanager.TimeoutSSLSocketFactory
public class TimeoutSSLSocketFactory
A wrapper for the SSLSocketFactory to work aroung jdk1.4 ignoring the timeout system settings. Also support timeout config values.
Constructor Summary | |
---|---|
TimeoutSSLSocketFactory(javax.net.ssl.SSLSocketFactory realFactory,
java.util.Properties config)
Creates a new TimedOutSSLSocketFactory. |
Method Summary | |
---|---|
java.net.Socket |
createSocket()
Creates socket with read timeout defined by either sslTimeout
sun.net.client.defaultReadTimeout . |
java.net.Socket |
createSocket(java.net.InetAddress host,
int port)
Creates socket and connects with timeouts defined by either sslConnectTimeout and
sslTimeout or
sun.net.client.defaultConnectTimeout and
sun.net.client.defaultReadTimeout . |
java.net.Socket |
createSocket(java.net.InetAddress address,
int port,
java.net.InetAddress localAddress,
int localPort)
Creates socket with timeout defined by either sslTimeout
sun.net.client.defaultReadTimeout . |
java.net.Socket |
createSocket(java.net.Socket s,
java.lang.String host,
int port,
boolean autoClose)
Creates socket with timeout defined by either sslTimeout
sun.net.client.defaultReadTimeout . |
java.net.Socket |
createSocket(java.lang.String host,
int port)
Creates socket and connects with timeouts defined by either sslConnectTimeout and
sslTimeout or
sun.net.client.defaultConnectTimeout and
sun.net.client.defaultReadTimeout . |
java.net.Socket |
createSocket(java.lang.String host,
int port,
java.net.InetAddress localHost,
int localPort)
Creates socket with timeout defined by either sslTimeout
sun.net.client.defaultReadTimeout . |
java.lang.String[] |
getDefaultCipherSuites()
|
java.lang.String[] |
getSupportedCipherSuites()
|
void |
setTimeout(java.net.Socket socket)
Sets the socket read timeout value |
Methods inherited from class javax.net.ssl.SSLSocketFactory |
---|
getDefault |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeoutSSLSocketFactory(javax.net.ssl.SSLSocketFactory realFactory, java.util.Properties config)
realFactory
- Factory used to create sockets.config
- the configuration parameters for this socket factory.Method Detail |
---|
public void setTimeout(java.net.Socket socket) throws java.net.SocketException
socket
- the socket to configure
java.net.SocketException
- thrown in case of errorpublic java.lang.String[] getDefaultCipherSuites()
getDefaultCipherSuites
in class javax.net.ssl.SSLSocketFactory
SSLSocketFactory.getDefaultCipherSuites()
public java.lang.String[] getSupportedCipherSuites()
getSupportedCipherSuites
in class javax.net.ssl.SSLSocketFactory
SSLSocketFactory.getSupportedCipherSuites()
public java.net.Socket createSocket() throws java.io.IOException
sslTimeout
sun.net.client.defaultReadTimeout
.
createSocket
in class javax.net.SocketFactory
java.io.IOException
SocketFactory.createSocket()
public java.net.Socket createSocket(java.net.Socket s, java.lang.String host, int port, boolean autoClose) throws java.io.IOException
sslTimeout
sun.net.client.defaultReadTimeout
.
createSocket
in class javax.net.ssl.SSLSocketFactory
java.io.IOException
SSLSocketFactory.createSocket(java.net.Socket, java.lang.String,
int, boolean)
public java.net.Socket createSocket(java.lang.String host, int port) throws java.io.IOException, java.net.UnknownHostException
sslConnectTimeout
and
sslTimeout
or
sun.net.client.defaultConnectTimeout
and
sun.net.client.defaultReadTimeout
.
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
SocketFactory.createSocket(java.lang.String, int)
public java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException
sslConnectTimeout
and
sslTimeout
or
sun.net.client.defaultConnectTimeout
and
sun.net.client.defaultReadTimeout
.
createSocket
in class javax.net.SocketFactory
java.io.IOException
SocketFactory.createSocket(java.net.InetAddress, int)
public java.net.Socket createSocket(java.lang.String host, int port, java.net.InetAddress localHost, int localPort) throws java.io.IOException, java.net.UnknownHostException
sslTimeout
sun.net.client.defaultReadTimeout
.
createSocket
in class javax.net.SocketFactory
java.io.IOException
java.net.UnknownHostException
SocketFactory.createSocket(java.lang.String, int,
java.net.InetAddress, int)
public java.net.Socket createSocket(java.net.InetAddress address, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException
sslTimeout
sun.net.client.defaultReadTimeout
.
createSocket
in class javax.net.SocketFactory
java.io.IOException
SocketFactory.createSocket(java.net.InetAddress, int,
java.net.InetAddress, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |