public interface IKernelChannel
void open()
throws IOException
IOExceptionvoid open(boolean blocking)
throws IOException
IOExceptionboolean isSecure()
boolean isCryptoAvailable()
String getCipherSuite()
String getProtocol()
String getRequestedCipherSuite()
String getRequestedProtocol()
void setCertificate(X509Certificate certificate)
InetSocketAddress getRemoteAddress()
InetSocketAddress getLocalAddress()
int getPort()
int getLocalPort()
boolean isConnected()
void setConnectTimeout(long connectTimeout)
void registerConnect(Selector s, Object o) throws ClosedChannelException, com.ibm.rational.test.lt.kernel.io.KMonitoredChannelException
ClosedChannelExceptioncom.ibm.rational.test.lt.kernel.io.KMonitoredChannelExceptionboolean connect(InetSocketAddress address) throws Exception
Exceptionboolean connect(InetSocketAddress localAddress, InetSocketAddress remoteAddress) throws Exception
Exceptionboolean finishConnect()
throws IOException
IOExceptionvoid handshake()
throws Exception
This should not be called as a matter of course. If the KChannel was configured for SSL before the call to connect(), the handshake would occur automatically before the handleConnect() callback is called.
If the original connect was made without SSL enabled (as is the case with SSL over a Proxy), the channel can be converted to a secure channel by calling setSecure(...) and then handshake().
Exception - if the channel fails to handshake properlyIKernelChannel.setSecure(String, String),
IKChannel.connect(InetSocketAddress),
IKChannel.handleConnect(Throwable)void setWriteTimeout(long writeTimeout)
int write(ByteBuffer buffer) throws Exception
ExceptionWritableByteChannel.write(ByteBuffer)void setReadTimeout(long readTimeout)
SelectionKey registerRead(Selector s, Object o) throws ClosedChannelException, com.ibm.rational.test.lt.kernel.io.KMonitoredChannelException
ClosedChannelExceptioncom.ibm.rational.test.lt.kernel.io.KMonitoredChannelExceptionint read(ByteBuffer buffer) throws Exception
Exceptionboolean unwrap(int readCount,
ByteBuffer buffer)
throws Exception
Exceptionvoid close()
throws IOException
IOExceptionboolean monitorPeerClose(boolean b)
boolean isMonitorPeerClose()
void setLocalAddress(InetSocketAddress local)
void debugHandshake(String s)
void setKChannel(IKChannel kChannel)
void setDestinationHostName(String hostName)
void setDestinationPort(int port)
boolean continueHandshake(int numBytesRead,
ByteBuffer src)
throws Exception
ExceptionString getHandshakeStatus()
SocketChannel getChannel()
© Copyright IBM Corp. 2013. All rights reserved.