Index

A B C D E F G H I M N R S T W 
All Classes All Packages

A

allocate(int) - Method in interface tlschannel.BufferAllocator
Allocate a ByteBuffer with the given initial capacity.
allocate(int) - Method in class tlschannel.DirectBufferAllocator
 
allocate(int) - Method in class tlschannel.HeapBufferAllocator
 
allocate(int) - Method in class tlschannel.TrackingAllocator
 
AsynchronousTlsChannel - Class in tlschannel.async
An AsynchronousByteChannel that works using TlsChannels.
AsynchronousTlsChannel(AsynchronousTlsChannelGroup, TlsChannel, SocketChannel) - Constructor for class tlschannel.async.AsynchronousTlsChannel
Initializes a new instance of this class.
AsynchronousTlsChannelGroup - Class in tlschannel.async
This class encapsulates the infrastructure for running AsynchronousTlsChannels.
AsynchronousTlsChannelGroup() - Constructor for class tlschannel.async.AsynchronousTlsChannelGroup
Creates an instance of this class, using as many thread as available processors.
AsynchronousTlsChannelGroup(int) - Constructor for class tlschannel.async.AsynchronousTlsChannelGroup
Creates an instance of this class.
awaitTermination(long, TimeUnit) - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Blocks until all registers sockets are closed and pending tasks finished execution after a shutdown request, or the timeout occurs, or the current thread is interrupted, whichever happens first.

B

BufferAllocator - Interface in tlschannel
A factory for ByteBuffers.
buffersAllocated() - Method in class tlschannel.TrackingAllocator
 
buffersDeallocated() - Method in class tlschannel.TrackingAllocator
 
build() - Method in class tlschannel.ClientTlsChannel.Builder
 
build() - Method in class tlschannel.ServerTlsChannel.Builder
 
bytesAllocated() - Method in class tlschannel.TrackingAllocator
 
bytesDeallocated() - Method in class tlschannel.TrackingAllocator
 

C

ClientTlsChannel - Class in tlschannel
A client-side TlsChannel.
ClientTlsChannel.Builder - Class in tlschannel
Builder of ClientTlsChannel
close() - Method in class tlschannel.async.AsynchronousTlsChannel
Closes this channel.
close() - Method in class tlschannel.ClientTlsChannel
 
close() - Method in class tlschannel.ServerTlsChannel
 
close() - Method in interface tlschannel.TlsChannel
Closes the underlying channel.
currentAllocation() - Method in class tlschannel.TrackingAllocator
 

D

defaultEncryptedBufferAllocator - Static variable in interface tlschannel.TlsChannel
 
defaultPlainBufferAllocator - Static variable in interface tlschannel.TlsChannel
 
DirectBufferAllocator - Class in tlschannel
Allocator that creates direct buffers.
DirectBufferAllocator() - Constructor for class tlschannel.DirectBufferAllocator
 

E

ExtendedAsynchronousByteChannel - Interface in tlschannel.async
This interface extends AsynchronousByteChannel adding optional timeouts and scattering and gathering methods.

F

fillInStackTrace() - Method in exception tlschannel.TlsChannelFlowControlException
For efficiency, override this method to do nothing.
free(ByteBuffer) - Method in interface tlschannel.BufferAllocator
Deallocate the given ByteBuffer.
free(ByteBuffer) - Method in class tlschannel.DirectBufferAllocator
 
free(ByteBuffer) - Method in class tlschannel.HeapBufferAllocator
 
free(ByteBuffer) - Method in class tlschannel.TrackingAllocator
 

G

getCancelledReadCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of read operations that were cancelled.
getCancelledWriteCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of write operations that were cancelled.
getCurrentReadCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Returns the current number of active read operations.
getCurrentRegistrationCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Returns the current number of registered sockets.
getCurrentWriteCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Returns the current number of active write operations.
getEncryptedBufferAllocator() - Method in class tlschannel.ClientTlsChannel
 
getEncryptedBufferAllocator() - Method in class tlschannel.ServerTlsChannel
 
getEncryptedBufferAllocator() - Method in interface tlschannel.TlsChannel
Return the BufferAllocator to use for encrypted data.
getFailedReadCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of read operations that failed.
getFailedWriteCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of write operations that failed.
getPlainBufferAllocator() - Method in class tlschannel.ClientTlsChannel
 
getPlainBufferAllocator() - Method in class tlschannel.ServerTlsChannel
 
getPlainBufferAllocator() - Method in interface tlschannel.TlsChannel
Return the BufferAllocator to use for unencrypted data.
getRunTasks() - Method in class tlschannel.ClientTlsChannel
 
getRunTasks() - Method in class tlschannel.ServerTlsChannel
 
getRunTasks() - Method in interface tlschannel.TlsChannel
Return whether CPU-intensive tasks are run or not.
getSessionInitCallback() - Method in class tlschannel.ClientTlsChannel
 
getSessionInitCallback() - Method in class tlschannel.ServerTlsChannel
 
getSessionInitCallback() - Method in interface tlschannel.TlsChannel
Return the callback function to be executed when the TLS session is established (or re-established).
getSslContext() - Method in class tlschannel.ServerTlsChannel
Return the used SSLContext.
getSslContext(Optional<SNIServerName>) - Method in interface tlschannel.SniSslContextFactory
Return a proper SSLContext.
getSslEngine() - Method in class tlschannel.ClientTlsChannel
 
getSslEngine() - Method in class tlschannel.ServerTlsChannel
 
getSslEngine() - Method in interface tlschannel.TlsChannel
Return a reference to the SSLEngine used.
getStartedReadCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of read operations that were started.
getStartedWriteCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of write operations that were started.
getSuccessfulReadCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of read operations that succeeded.
getSuccessfulWriteCount() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Return the total number of write operations that succeeded.
getTask() - Method in exception tlschannel.NeedsTaskException
 
getUnderlying() - Method in class tlschannel.ClientTlsChannel
 
getUnderlying() - Method in class tlschannel.ServerTlsChannel
 
getUnderlying() - Method in interface tlschannel.TlsChannel
Return a reference to the underlying ByteChannel.

H

handshake() - Method in class tlschannel.ClientTlsChannel
 
handshake() - Method in class tlschannel.ServerTlsChannel
 
handshake() - Method in interface tlschannel.TlsChannel
Forces the initial TLS handshake.
HeapBufferAllocator - Class in tlschannel
Allocator that creates heap buffers.
HeapBufferAllocator() - Constructor for class tlschannel.HeapBufferAllocator
 

I

isOpen() - Method in class tlschannel.async.AsynchronousTlsChannel
Tells whether or not this channel is open.
isOpen() - Method in class tlschannel.ClientTlsChannel
 
isOpen() - Method in class tlschannel.ServerTlsChannel
 
isShutdown() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
isTerminated() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Whether this channel group was shut down, and all pending tasks have drained.

M

maxAllocation() - Method in class tlschannel.TrackingAllocator
 

N

NeedsReadException - Exception in tlschannel
This exception signals the caller that the operation cannot continue because bytesProduced need to be read from the underlying ByteChannel, the channel is non-blocking and there are no bytesProduced available.
NeedsReadException() - Constructor for exception tlschannel.NeedsReadException
 
NeedsTaskException - Exception in tlschannel
This exception signals the caller that the operation could not continue because a CPU-intensive operation (typically a TLS handshaking) needs to be executed and the TlsChannel is configured to not run tasks.
NeedsTaskException(Runnable) - Constructor for exception tlschannel.NeedsTaskException
 
NeedsWriteException - Exception in tlschannel
This exception signals the caller that the operation cannot continue because bytesProduced need to be write to the underlying ByteChannel, the channel is non-blocking and there are no buffer space available.
NeedsWriteException() - Constructor for exception tlschannel.NeedsWriteException
 
newBuilder(ByteChannel, SSLContext) - Static method in class tlschannel.ClientTlsChannel
Create a new ClientTlsChannel.Builder, configured with a underlying Channel and a SSLContext.
newBuilder(ByteChannel, SSLContext) - Static method in class tlschannel.ServerTlsChannel
Create a new ServerTlsChannel.Builder, configured with a underlying Channel and a fixed SSLContext, which will be used to create the SSLEngine.
newBuilder(ByteChannel, SSLEngine) - Static method in class tlschannel.ClientTlsChannel
Create a new ClientTlsChannel.Builder, configured with a underlying Channel and a fixed SSLEngine.
newBuilder(ByteChannel, SniSslContextFactory) - Static method in class tlschannel.ServerTlsChannel
Create a new ServerTlsChannel.Builder, configured with a underlying Channel and a custom SSLContext factory, which will be used to create the context (in turn used to create the SSLEngine, as a function of the SNI received at the TLS connection start.

R

read(ByteBuffer) - Method in class tlschannel.async.AsynchronousTlsChannel
 
read(ByteBuffer) - Method in class tlschannel.ClientTlsChannel
 
read(ByteBuffer) - Method in class tlschannel.ServerTlsChannel
 
read(ByteBuffer) - Method in interface tlschannel.TlsChannel
Reads a sequence of bytesProduced from this channel into the given buffer.
read(ByteBuffer[]) - Method in class tlschannel.ClientTlsChannel
 
read(ByteBuffer[]) - Method in class tlschannel.ServerTlsChannel
 
read(ByteBuffer[]) - Method in interface tlschannel.TlsChannel
Reads a sequence of bytesProduced from this channel into the given buffers.
read(ByteBuffer[], int, int) - Method in class tlschannel.ClientTlsChannel
 
read(ByteBuffer[], int, int) - Method in class tlschannel.ServerTlsChannel
 
read(ByteBuffer[], int, int) - Method in interface tlschannel.TlsChannel
Reads a sequence of bytesProduced from this channel into a subsequence of the given buffers.
read(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, ? super A>) - Method in class tlschannel.async.AsynchronousTlsChannel
 
read(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, ? super A>) - Method in interface tlschannel.async.ExtendedAsynchronousByteChannel
Reads a sequence of bytes from this channel into a subsequence of the given buffers.
read(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, ? super A>) - Method in class tlschannel.async.AsynchronousTlsChannel
 
read(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, ? super A>) - Method in interface tlschannel.async.ExtendedAsynchronousByteChannel
Reads a sequence of bytes from this channel into the given buffer.
read(ByteBuffer, A, CompletionHandler<Integer, ? super A>) - Method in class tlschannel.async.AsynchronousTlsChannel
 
renegotiate() - Method in class tlschannel.ClientTlsChannel
 
renegotiate() - Method in class tlschannel.ServerTlsChannel
 
renegotiate() - Method in interface tlschannel.TlsChannel
Initiates a handshake (initial or renegotiation) on this channel.

S

ServerTlsChannel - Class in tlschannel
A server-side TlsChannel.
ServerTlsChannel.Builder - Class in tlschannel
Builder of ServerTlsChannel
shutdown() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Starts the shutdown process.
shutdown() - Method in class tlschannel.ClientTlsChannel
 
shutdown() - Method in class tlschannel.ServerTlsChannel
 
shutdown() - Method in interface tlschannel.TlsChannel
Shuts down the TLS connection.
shutdownNow() - Method in class tlschannel.async.AsynchronousTlsChannelGroup
Shuts down this channel group immediately.
shutdownReceived() - Method in class tlschannel.ClientTlsChannel
 
shutdownReceived() - Method in class tlschannel.ServerTlsChannel
 
shutdownReceived() - Method in interface tlschannel.TlsChannel
Return whether this side of the connection has already received the close notification.
shutdownSent() - Method in class tlschannel.ClientTlsChannel
 
shutdownSent() - Method in class tlschannel.ServerTlsChannel
 
shutdownSent() - Method in interface tlschannel.TlsChannel
Return whether this side of the connection has already sent the close notification.
SniSslContextFactory - Interface in tlschannel
Factory for SSLContexts, based in an optional SNIServerName.

T

tlschannel - package tlschannel
TLS Channel is a library that implements a ByteChannel interface to a TLS (Transport Layer Security) connection.
TlsChannel - Interface in tlschannel
A ByteChannel interface to a TLS (Transport Layer Security) connection.
tlschannel.async - package tlschannel.async
This package enables the usage of TLS Channel as an AsynchronousByteChannel.
TlsChannelBuilder<T extends TlsChannelBuilder<T>> - Class in tlschannel
Base class for builders of TlsChannel.
TlsChannelCallbackException - Exception in tlschannel
Thrown during TlsChannel handshake to indicate that a user-supplied function threw an exception.
TlsChannelCallbackException(String, Throwable) - Constructor for exception tlschannel.TlsChannelCallbackException
 
TlsChannelFlowControlException - Exception in tlschannel
Base class for exceptions used to control flow.
TlsChannelFlowControlException() - Constructor for exception tlschannel.TlsChannelFlowControlException
 
TrackingAllocator - Class in tlschannel
A decorating BufferAllocator that keeps statistics.
TrackingAllocator(BufferAllocator) - Constructor for class tlschannel.TrackingAllocator
 

W

withEncryptedBufferAllocator(BufferAllocator) - Method in class tlschannel.TlsChannelBuilder
Set the BufferAllocator to use for encrypted data.
withEngineFactory(Function<SSLContext, SSLEngine>) - Method in class tlschannel.ServerTlsChannel.Builder
 
withPlainBufferAllocator(BufferAllocator) - Method in class tlschannel.TlsChannelBuilder
Set the BufferAllocator to use for unencrypted data.
withReleaseBuffers(boolean) - Method in class tlschannel.TlsChannelBuilder
Whether to release unused buffers in the mid of connections.
withRunTasks(boolean) - Method in class tlschannel.TlsChannelBuilder
Whether CPU-intensive tasks are run or not.
withSessionInitCallback(Consumer<SSLSession>) - Method in class tlschannel.TlsChannelBuilder
Register a callback function to be executed when the TLS session is established (or re-established).
withWaitForCloseConfirmation(boolean) - Method in class tlschannel.TlsChannelBuilder
Whether to wait for TLS close confirmation when executing a local TlsChannel.close() on the channel.
WouldBlockException - Exception in tlschannel
Signals that some IO operation cannot continue because the channel is in non blocking mode and some blocking would otherwise happen.
WouldBlockException() - Constructor for exception tlschannel.WouldBlockException
 
write(ByteBuffer) - Method in class tlschannel.async.AsynchronousTlsChannel
 
write(ByteBuffer) - Method in class tlschannel.ClientTlsChannel
 
write(ByteBuffer) - Method in class tlschannel.ServerTlsChannel
 
write(ByteBuffer) - Method in interface tlschannel.TlsChannel
Writes a sequence of bytesProduced to this channel from the given buffer.
write(ByteBuffer[]) - Method in class tlschannel.ClientTlsChannel
 
write(ByteBuffer[]) - Method in class tlschannel.ServerTlsChannel
 
write(ByteBuffer[]) - Method in interface tlschannel.TlsChannel
Writes a sequence of bytesProduced to this channel from the given buffers.
write(ByteBuffer[], int, int) - Method in class tlschannel.ClientTlsChannel
 
write(ByteBuffer[], int, int) - Method in class tlschannel.ServerTlsChannel
 
write(ByteBuffer[], int, int) - Method in interface tlschannel.TlsChannel
Writes a sequence of bytesProduced to this channel from a subsequence of the given buffers.
write(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, ? super A>) - Method in class tlschannel.async.AsynchronousTlsChannel
 
write(ByteBuffer[], int, int, long, TimeUnit, A, CompletionHandler<Long, ? super A>) - Method in interface tlschannel.async.ExtendedAsynchronousByteChannel
Writes a sequence of bytes to this channel from a subsequence of the given buffers.
write(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, ? super A>) - Method in class tlschannel.async.AsynchronousTlsChannel
 
write(ByteBuffer, long, TimeUnit, A, CompletionHandler<Integer, ? super A>) - Method in interface tlschannel.async.ExtendedAsynchronousByteChannel
Writes a sequence of bytes to this channel from the given buffer.
write(ByteBuffer, A, CompletionHandler<Integer, ? super A>) - Method in class tlschannel.async.AsynchronousTlsChannel
 
A B C D E F G H I M N R S T W 
All Classes All Packages