|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.Socket | +--javax.net.ssl.SSLSocket | +--de.tu_darmstadt.sp.ssl.SSLeaySocket | +--de.tu_darmstadt.sp.rmi.RMISSLSocket
Class RMISSLSocket extends the SSLeaySocket
and provides
an acoounting for all communications thorugh the created sockets: the most
recent thread which used a socket is associated to it. Conversely,
every thread can find out the last RMISSLSocket
it has used using
the methods getCurrentServerSideSocket
and
getCurrentClientSideSocket
.
Fields inherited from class de.tu_darmstadt.sp.ssl.SSLeaySocket |
context,
handle |
Constructor Summary | |
protected |
RMISSLSocket(java.net.InetAddress address,
int port,
java.net.InetAddress clientAddr,
int clientPort,
SSLeaySessionContext ctx)
Returns a socket connected to a ServerSocket on the named host, at the given port. |
|
RMISSLSocket(java.net.InetAddress address,
int port,
SSLeaySessionContext ctx)
Constructs a TCP connection to a server at a specified address and port.This (usually) acts as the SSL client, but SSL policy is usually controlled by the corresponding factory. |
|
RMISSLSocket(SSLeaySessionContext ctx)
Create an unconnected socket using the client mode. |
|
RMISSLSocket(java.lang.String host,
int port,
java.net.InetAddress clientAddr,
int clientPort,
SSLeaySessionContext ctx)
Constructs an SSL connection to a named host at a specified port, binding the client side of the connection a given address and port. |
|
RMISSLSocket(java.lang.String host,
int port,
SSLeaySessionContext ctx)
Constructs a TCP connection to a named host at a specified port. |
Method Summary | |
static SSLSocket |
getCurrentClientSideSocket()
Return the last RMISSLSocket connetion in the currrent
thread. |
static SSLSocket |
getCurrentServerSideSocket()
Return the last RMISSLSocket connetion in the currrent
thread. |
java.io.InputStream |
getInputStream()
Returns an input stream for this socket. |
java.io.OutputStream |
getOutputStream()
Returns an output stream for this socket. |
Methods inherited from class de.tu_darmstadt.sp.ssl.SSLeaySocket |
addHandshakeCompletedListener,
close,
getEnabledCipherSuites,
getEnableSessionCreation,
getNeedClientAuth,
getPeerName,
getSession,
getSupportedCipherSuites,
getUseClientMode,
removeHandshakeCompletedListener,
setEnabledCipherSuites,
setEnableSessionCreation,
setNeedClientAuth,
setUseClientMode,
startHandshake,
toString |
Methods inherited from class java.net.Socket |
getInetAddress,
getLocalAddress,
getLocalPort,
getPort,
getReceiveBufferSize,
getSendBufferSize,
getSoLinger,
getSoTimeout,
getTcpNoDelay,
setReceiveBufferSize,
setSendBufferSize,
setSocketImplFactory,
setSoLinger,
setSoTimeout,
setTcpNoDelay |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public RMISSLSocket(SSLeaySessionContext ctx)
ctx
- the SSLeaySessionContext
for the session(s)
used by this connection.SSLeayHandle
could be createdpublic RMISSLSocket(java.lang.String host, int port, SSLeaySessionContext ctx) throws java.net.UnknownHostException, java.io.IOException
host
- the host name.port
- the port number.ctx
- the SSLeaySessionContext
for the session(s)
used by this connection.SSLeayHandle
could be createdpublic RMISSLSocket(java.net.InetAddress address, int port, SSLeaySessionContext ctx) throws java.io.IOException
address
- the IP address.port
- the port number.ctx
- the SSLeaySessionContext
for the session(s)
used by this connection.SSLeayHandle
could be createdpublic RMISSLSocket(java.lang.String host, int port, java.net.InetAddress clientAddr, int clientPort, SSLeaySessionContext ctx) throws java.io.IOException
host
- the name of the remote hostport
- the remote portclientAddr
- the local address the socket is bound toclientPort
- the local port the socket is bound toctx
- the SSLeaySessionContext
for the session(s)
used by this connection.SSLeayHandle
could be createdprotected RMISSLSocket(java.net.InetAddress address, int port, java.net.InetAddress clientAddr, int clientPort, SSLeaySessionContext ctx) throws java.io.IOException
address
- the remote addressport
- the remote portclientAddr
- the local address the socket is bound toclientPort
- the local port the socket is bound toctx
- the SSLeaySessionContext
for the session(s)
used by this connection.SSLeayHandle
could be created.Method Detail |
public java.io.InputStream getInputStream() throws java.io.IOException
startHandshake
will be performed.
Additionaly, this method associates the current thread to this socket.
public java.io.OutputStream getOutputStream() throws java.io.IOException
startHandshake
will be performed.
Additionaly, this method associates the current thread to this socket.
public static SSLSocket getCurrentServerSideSocket()
RMISSLSocket
connetion in the currrent
thread.public static SSLSocket getCurrentClientSideSocket()
RMISSLSocket
connetion in the currrent
thread.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |