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