Filter to operate with SSL encrypted data.
| Modifier and Type | Class and Description |
|---|---|
| private class | SSLFilter.
References Deprecated
Close listener, which is used to notify handshake completion handler about failure, if Connection will be
unexpectedly closed.
GenericCloseListener is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private static class | SSLFilter.
The static class is used as JDK 1.7+ guard and shouldn't be initialized by JDK 1.6.x at runtime, because one of the methods is only available since 1.7. |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final SSLEngineConfigurator | |
| private final SSLFilter. | closeListener
References Deprecated
SSLFilter.ConnectionCloseListener is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private final Attribute | |
| private static final Logger | |
| protected volatile int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SSLFilter(SSLEngineConfigurator
SSLEngine configurator for server side connections serverSSLEngineConfigurator, SSLEngineConfigurator SSLEngine configurator for client side connections clientSSLEngineConfigurator)Build SSLFilter with the given |
| public | SSLFilter(SSLEngineConfigurator
SSLEngine configurator for server side connections serverSSLEngineConfigurator, SSLEngineConfigurator SSLEngine configurator for client side connections clientSSLEngineConfigurator, boolean true, if SSLBaseFilter has to force client authentication during
re-handshake, in case the client didn't send its credentials during the initial handshake in response to
"wantClientAuth" flag. In this case "needClientAuth" flag will be raised and re-handshake will be initiated renegotiateOnClientAuthWant)Build SSLFilter with the given |
| Modifier and Type | Method and Description |
|---|---|
| private NextAction | accurateWrite(final FilterChainContext ctx, final boolean isHandshakeComplete)
Has to be called in synchronized(connection) {...} block. |
| protected SSLEngine | createClientSSLEngine(final SSLConnectionContext sslCtx, final SSLEngineConfigurator sslEngineConfigurator)
|
| protected Buffer | doHandshakeStep(final SSLConnectionContext sslCtx, final FilterChainContext ctx, final Buffer inputBuffer, final Buffer tmpAppBuffer0)
Overrides org.
|
| public SSLEngineConfigurator | getClientSSLEngineConfigurator()
Returns: |
| public int | getMaxPendingBytesPerConnection()
Returns: the maximum number of bytes that may be queued to be written to a particular |
| public NextAction | handleWrite(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when some data should be written on channel. |
| public void | |
| public void | handshake(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler, final Object dstAddress)
|
| public void | handshake(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler, final Object dstAddress, final SSLEngineConfigurator sslEngineConfigurator)
|
| protected void | handshake(final Connection<?> connection, final CompletionHandler<SSLEngine> completionHandler, final Object dstAddress, final SSLEngineConfigurator sslEngineConfigurator, final FilterChainContext context, final boolean forceBeginHandshake)
|
| protected void | notifyHandshakeComplete(final Connection<?> connection, final SSLEngine sslEngine)
Overrides org.
|
| protected void | notifyHandshakeFailed(Connection<L> connection, Throwable t)
Overrides org.
|
| public void | setMaxPendingBytesPerConnection(final int
maximum number of bytes that may be queued to be written for a particular maxPendingBytes)ConnectionConfigures the maximum number of bytes that may be queued to be written for a particular |
| clientSSLEngineConfigurator | back to summary |
|---|---|
| private final SSLEngineConfigurator clientSSLEngineConfigurator | |
| closeListener | back to summary |
|---|---|
| private final SSLFilter. References Deprecated
See corresponding docs for further information. | |
| handshakeContextAttr | back to summary |
|---|---|
| private final Attribute<SSLFilter. | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| maxPendingBytes | back to summary |
|---|---|
| protected volatile int maxPendingBytes | |
| SSLFilter | back to summary |
|---|---|
| public SSLFilter() | |
| SSLFilter | back to summary |
|---|---|
| public SSLFilter(SSLEngineConfigurator serverSSLEngineConfigurator, SSLEngineConfigurator clientSSLEngineConfigurator) Build SSLFilter with the given
| |
| SSLFilter | back to summary |
|---|---|
| public SSLFilter(SSLEngineConfigurator serverSSLEngineConfigurator, SSLEngineConfigurator clientSSLEngineConfigurator, boolean renegotiateOnClientAuthWant) Build SSLFilter with the given
| |
| accurateWrite | back to summary |
|---|---|
| private NextAction accurateWrite(final FilterChainContext ctx, final boolean isHandshakeComplete) throws IOException Has to be called in synchronized(connection) {...} block. | |
| createClientSSLEngine | back to summary |
|---|---|
| protected SSLEngine createClientSSLEngine(final SSLConnectionContext sslCtx, final SSLEngineConfigurator sslEngineConfigurator) | |
| doHandshakeStep | back to summary |
|---|---|
| protected Buffer doHandshakeStep(final SSLConnectionContext sslCtx, final FilterChainContext ctx, final Buffer inputBuffer, final Buffer tmpAppBuffer0) throws IOException Overrides org.
| |
| getClientSSLEngineConfigurator | back to summary |
|---|---|
public SSLEngineConfigurator getClientSSLEngineConfigurator()
| |
| getMaxPendingBytesPerConnection | back to summary |
|---|---|
public int getMaxPendingBytesPerConnection()
| |
| handleWrite | back to summary |
|---|---|
| public NextAction handleWrite(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when some data should be written on channel. This
| |
| handshake | back to summary |
|---|---|
| public void handshake(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler) throws IOException | |
| handshake | back to summary |
|---|---|
| public void handshake(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler, final Object dstAddress) throws IOException | |
| handshake | back to summary |
|---|---|
| public void handshake(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler, final Object dstAddress, final SSLEngineConfigurator sslEngineConfigurator) throws IOException | |
| handshake | back to summary |
|---|---|
| protected void handshake(final Connection<?> connection, final CompletionHandler<SSLEngine> completionHandler, final Object dstAddress, final SSLEngineConfigurator sslEngineConfigurator, final FilterChainContext context, final boolean forceBeginHandshake) throws IOException | |
| notifyHandshakeComplete | back to summary |
|---|---|
| protected void notifyHandshakeComplete(final Connection<?> connection, final SSLEngine sslEngine) Overrides org.
| |
| notifyHandshakeFailed | back to summary |
|---|---|
| protected void notifyHandshakeFailed(Connection<L> connection, Throwable t) Overrides org.
| |
| setMaxPendingBytesPerConnection | back to summary |
|---|---|
| public void setMaxPendingBytesPerConnection(final int maxPendingBytes) Configures the maximum number of bytes that may be queued to be written for a particular
| |
References Deprecated
GenericCloseListener is deprecated or references (maybe indirectly) at least one deprecated element.
See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | onClosed(final Closeable closeable, final CloseType type)
Implements org.
References Deprecated
CloseType is deprecated or references (maybe indirectly) at least one deprecated element.
|
| ConnectionCloseListener | back to summary |
|---|---|
| private ConnectionCloseListener() | |
| onClosed | back to summary |
|---|---|
| public void onClosed(final Closeable closeable, final CloseType type) throws IOException Implements org. References Deprecated
See corresponding docs for further information.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static String |
| HostNameResolver | back to summary |
|---|---|
| private HostNameResolver() | |
| getPeerHostName | back to summary |
|---|---|
| public static String getPeerHostName(final Connection<?> connection) | |
| Modifier and Type | Field and Description |
|---|---|
| private CompletionHandler | |
| private final Connection | |
| private Throwable | |
| private boolean | |
| private List | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | SSLHandshakeContext(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void | |
| public void | |
| private void |
| completionHandler | back to summary |
|---|---|
| private CompletionHandler<SSLEngine> completionHandler | |
| connection | back to summary |
|---|---|
| private final Connection<L> connection | |
| error | back to summary |
|---|---|
| private Throwable error | |
| isComplete | back to summary |
|---|---|
| private boolean isComplete | |
| pendingWriteContexts | back to summary |
|---|---|
| private List<FilterChainContext> pendingWriteContexts | |
| sizeInBytes | back to summary |
|---|---|
| private int sizeInBytes | |
| SSLHandshakeContext | back to summary |
|---|---|
| public SSLHandshakeContext(final Connection<L> connection, final CompletionHandler<SSLEngine> completionHandler) | |
| add | back to summary |
|---|---|
| public boolean add(FilterChainContext context) throws IOException Has to be called in synchronized(connection) {...} scope. | |
| completed | back to summary |
|---|---|
| public void completed(final SSLEngine engine) | |
| failed | back to summary |
|---|---|
| public void failed(final Throwable throwable) | |
| resumePendingWrites | back to summary |
|---|---|
| private void resumePendingWrites() | |