-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable,java.nio.channels.AsynchronousByteChannel,java.nio.channels.AsynchronousChannel,java.nio.channels.Channel,java.nio.channels.NetworkChannel,org.openziti.util.Logged
public final class AsyncTLSChannel extends AsynchronousSocketChannel implements Logged
Implementation TLS stream conforming to AsynchronousSocketChannel.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classAsyncTLSChannel.Companionpublic final classAsyncTLSChannel.Grouppublic classAsyncTLSChannel.Providerpublic enumAsyncTLSChannel.State
-
Field Summary
Fields Modifier and Type Field Description private final SSLContextssl
-
Constructor Summary
Constructors Constructor Description AsyncTLSChannel(AsynchronousSocketChannel ch, SSLContext ssl)AsyncTLSChannel(SSLContext ssl)AsyncTLSChannel(AsynchronousSocketChannel ch, SSLContext ssl, AsynchronousChannelProvider provider)
-
Method Summary
-
-
Constructor Detail
-
AsyncTLSChannel
AsyncTLSChannel(AsynchronousSocketChannel ch, SSLContext ssl)
-
AsyncTLSChannel
AsyncTLSChannel(SSLContext ssl)
-
AsyncTLSChannel
AsyncTLSChannel(AsynchronousSocketChannel ch, SSLContext ssl, AsynchronousChannelProvider provider)
-
-
Method Detail
-
getSsl
final SSLContext getSsl()
-
connect
<A extends Any> Unit connect(SocketAddress remote, A attachment, CompletionHandler<Void, in A> handler)
-
connect
CompletableFuture<Void> connect(SocketAddress remote)
-
getLocalAddress
SocketAddress getLocalAddress()
-
getRemoteAddress
SocketAddress getRemoteAddress()
-
getOption
<T extends Any> T getOption(SocketOption<T> name)
-
setOption
<T extends Any> AsynchronousSocketChannel setOption(SocketOption<T> name, T value)
-
write
<A extends Any> Unit write(ByteBuffer src, Long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, in A> handler)
-
write
Future<Integer> write(ByteBuffer src)
-
write
<A extends Any> Unit write(Array<out ByteBuffer> srcs, Integer offset, Integer length, Long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, in A> handler)
-
bind
AsynchronousSocketChannel bind(SocketAddress local)
-
supportedOptions
Set<SocketOption<?>> supportedOptions()
-
shutdownInput
AsynchronousSocketChannel shutdownInput()
-
shutdownOutput
AsynchronousSocketChannel shutdownOutput()
-
read
<A extends Any> Unit read(ByteBuffer dst, Long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer, in A> handler)
-
read
Future<Integer> read(ByteBuffer dst)
-
read
<A extends Any> Unit read(Array<out ByteBuffer> _dsts, Integer offset, Integer length, Long timeout, TimeUnit unit, A attachment, CompletionHandler<Long, in A> handler)
-
setSSLParameters
final Unit setSSLParameters(SSLParameters params)
-
setEnabledProtocols
final Unit setEnabledProtocols(Array<out String> protocols)
-
getEnabledProtocols
final Array<String> getEnabledProtocols()
-
setEnabledCipherSuites
final Unit setEnabledCipherSuites(Array<String> suites)
-
getEnabledCipherSuites
final Array<String> getEnabledCipherSuites()
-
getSupportedCipherSuites
final Array<String> getSupportedCipherSuites()
-
getSupportedProtocols
final Array<String> getSupportedProtocols()
-
getApplicationProtocol
final String getApplicationProtocol()
-
-
-
-