|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openorb.orb.iiop.IIOPTransport
org.openorb.orb.ssl.SSLTransport
public class SSLTransport
Transport layer for SSL connections.
Constructor Summary | |
---|---|
SSLTransport(java.net.InetAddress host,
int port,
int assocRequires,
java.lang.String[] enableCipherSuites,
javax.net.ssl.SSLSocketFactory socFactory)
Constructor based on the internet address and the port number. |
|
SSLTransport(javax.net.ssl.SSLSocket sock,
int serverPort,
SSLAssociation assoc)
Constructor based on the server side socket. |
Method Summary | |
---|---|
void |
close()
Close magic reader threads. |
protected java.net.Socket |
createSocket(java.net.InetAddress host,
int port)
Open the socket to the specified host and port. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger logger)
Provide this instance with a logger. |
javax.net.ssl.SSLSession |
getSocketSession()
Return the SSLSession of the socket. |
protected boolean |
readMagic(int timeout,
byte[] buf,
int off)
Reads four bytes from the input stream into the buffer at the specified offset. |
java.lang.String |
toString()
Print out socket information. |
Methods inherited from class org.openorb.orb.iiop.IIOPTransport |
---|
checkGIOPHeader, establishAssociation, getConnString, getSocket, isMessageError, isOpen, open, read, readBuffer, recvMessage, sendMessage, setMessageError, write, writeCloseMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SSLTransport(java.net.InetAddress host, int port, int assocRequires, java.lang.String[] enableCipherSuites, javax.net.ssl.SSLSocketFactory socFactory)
host
- The host on which to listen.port
- The port on which to listen.assocRequires
- The required association options.enableCipherSuites
- An array of enabled cipher suites.socFactory
- The SSLSocketFactory to be used.public SSLTransport(javax.net.ssl.SSLSocket sock, int serverPort, SSLAssociation assoc)
sock
- The socket top open.serverPort
- The port on which to open the socket.assoc
- The association.Method Detail |
---|
public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
logger
- The logger to be used.protected java.net.Socket createSocket(java.net.InetAddress host, int port) throws java.io.IOException
createSocket
in class org.openorb.orb.iiop.IIOPTransport
host
- The host on which to open the socket.port
- The port on which to open the socket.
java.io.IOException
- When the socket could not be opened.public javax.net.ssl.SSLSession getSocketSession()
SSLSession
of the socket associated with this transport.public java.lang.String toString()
toString
in class org.openorb.orb.iiop.IIOPTransport
protected boolean readMagic(int timeout, byte[] buf, int off) throws java.io.EOFException
readMagic
in class org.openorb.orb.iiop.IIOPTransport
timeout
- The time to wait for the arrival of the four bytes.buf
- The buffer to copy the four bytes to.off
- The offset to be used for the copy operation.
java.io.EOFException
- ???public void close()
close
in interface org.openorb.orb.net.Transport
close
in class org.openorb.orb.iiop.IIOPTransport
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |