public class JSSSocketChannel
extends java.nio.channels.SocketChannel
| Constructor and Description |
|---|
JSSSocketChannel(JSSSocket sslSocket,
java.nio.channels.SocketChannel parent,
JSSEngine engine) |
JSSSocketChannel(JSSSocket sslSocket,
java.nio.channels.SocketChannel parent,
java.net.Socket parentSocket,
java.nio.channels.ReadableByteChannel readChannel,
java.nio.channels.WritableByteChannel writeChannel,
JSSEngine engine) |
JSSSocketChannel(JSSSocket sslSocket,
java.net.Socket parentSocket,
java.nio.channels.ReadableByteChannel readChannel,
java.nio.channels.WritableByteChannel writeChannel,
JSSEngine engine) |
| Modifier and Type | Method and Description |
|---|---|
JSSSocketChannel |
bind(java.net.SocketAddress local) |
boolean |
connect(java.net.SocketAddress remote) |
boolean |
finishConnect() |
java.net.SocketAddress |
getLocalAddress() |
<T> T |
getOption(java.net.SocketOption<T> name) |
java.net.SocketAddress |
getRemoteAddress() |
void |
implCloseSelectableChannel() |
void |
implConfigureBlocking(boolean block) |
boolean |
isConnected() |
boolean |
isConnectionPending() |
int |
read(java.nio.ByteBuffer dst) |
long |
read(java.nio.ByteBuffer[] dsts,
int offset,
int length) |
void |
setAutoClose(boolean on)
Set whether or not to close the underlying Socket when the SSLSocket
or this channel is closed.
|
void |
setConsumedData(java.io.InputStream consumed)
Give data already consumed by a call to the underlying socket's read
method to this Socket, allowing it to be read by the SSLEngine.
|
<T> JSSSocketChannel |
setOption(java.net.SocketOption<T> name,
T value) |
JSSSocketChannel |
shutdownInput() |
JSSSocketChannel |
shutdownOutput() |
JSSSocket |
socket() |
java.util.Set<java.net.SocketOption<?>> |
supportedOptions() |
int |
write(java.nio.ByteBuffer src) |
long |
write(java.nio.ByteBuffer[] srcs,
int offset,
int length) |
blockingLock, configureBlocking, implCloseChannel, isBlocking, isRegistered, keyFor, provider, registerbegin, close, end, isOpenpublic JSSSocketChannel(JSSSocket sslSocket, java.nio.channels.SocketChannel parent, java.net.Socket parentSocket, java.nio.channels.ReadableByteChannel readChannel, java.nio.channels.WritableByteChannel writeChannel, JSSEngine engine) throws java.io.IOException
java.io.IOExceptionpublic JSSSocketChannel(JSSSocket sslSocket, java.nio.channels.SocketChannel parent, JSSEngine engine) throws java.io.IOException
java.io.IOExceptionpublic void setConsumedData(java.io.InputStream consumed)
throws java.io.IOException
java.io.IOExceptionpublic void setAutoClose(boolean on)
public boolean finishConnect()
throws java.io.IOException
finishConnect in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic int read(java.nio.ByteBuffer dst)
throws java.io.IOException
read in interface java.nio.channels.ReadableByteChannelread in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic long read(java.nio.ByteBuffer[] dsts,
int offset,
int length)
throws java.io.IOException
read in interface java.nio.channels.ScatteringByteChannelread in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic int write(java.nio.ByteBuffer src)
throws java.io.IOException
write in interface java.nio.channels.WritableByteChannelwrite in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic long write(java.nio.ByteBuffer[] srcs,
int offset,
int length)
throws java.io.IOException
write in interface java.nio.channels.GatheringByteChannelwrite in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic void implCloseSelectableChannel()
throws java.io.IOException
implCloseSelectableChannel in class java.nio.channels.spi.AbstractSelectableChanneljava.io.IOExceptionpublic JSSSocketChannel bind(java.net.SocketAddress local) throws java.io.IOException
bind in interface java.nio.channels.NetworkChannelbind in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic boolean connect(java.net.SocketAddress remote)
throws java.io.IOException
connect in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic <T> T getOption(java.net.SocketOption<T> name)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Set<java.net.SocketOption<?>> supportedOptions()
public <T> JSSSocketChannel setOption(java.net.SocketOption<T> name, T value) throws java.io.IOException
setOption in interface java.nio.channels.NetworkChannelsetOption in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic JSSSocket socket()
socket in class java.nio.channels.SocketChannelpublic boolean isConnected()
isConnected in class java.nio.channels.SocketChannelpublic boolean isConnectionPending()
isConnectionPending in class java.nio.channels.SocketChannelpublic java.net.SocketAddress getLocalAddress()
throws java.io.IOException
getLocalAddress in interface java.nio.channels.NetworkChannelgetLocalAddress in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic java.net.SocketAddress getRemoteAddress()
throws java.io.IOException
getRemoteAddress in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic JSSSocketChannel shutdownInput() throws java.io.IOException
shutdownInput in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic JSSSocketChannel shutdownOutput() throws java.io.IOException
shutdownOutput in class java.nio.channels.SocketChanneljava.io.IOExceptionpublic void implConfigureBlocking(boolean block)
throws java.io.IOException
implConfigureBlocking in class java.nio.channels.spi.AbstractSelectableChanneljava.io.IOException