public class AsyncChannelWrapperSecure extends Object implements AsyncChannelWrapper
AsynchronousSocketChannel
with SSL/TLS. This needs a lot
more testing before it can be considered robust.Constructor and Description |
---|
AsyncChannelWrapperSecure(AsynchronousSocketChannel socketChannel,
SSLEngine sslEngine) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Future<Void> |
handshake() |
Future<Integer> |
read(ByteBuffer dst) |
<B,A extends B> |
read(ByteBuffer dst,
A attachment,
CompletionHandler<Integer,B> handler) |
Future<Integer> |
write(ByteBuffer src) |
<B,A extends B> |
write(ByteBuffer[] srcs,
int offset,
int length,
long timeout,
TimeUnit unit,
A attachment,
CompletionHandler<Long,B> handler) |
public AsyncChannelWrapperSecure(AsynchronousSocketChannel socketChannel, SSLEngine sslEngine)
public Future<Integer> read(ByteBuffer dst)
read
in interface AsyncChannelWrapper
public <B,A extends B> void read(ByteBuffer dst, A attachment, CompletionHandler<Integer,B> handler)
read
in interface AsyncChannelWrapper
public Future<Integer> write(ByteBuffer src)
write
in interface AsyncChannelWrapper
public <B,A extends B> void write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,B> handler)
write
in interface AsyncChannelWrapper
public void close()
close
in interface AsyncChannelWrapper
public Future<Void> handshake() throws SSLException
handshake
in interface AsyncChannelWrapper
SSLException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.