Filter to operate with SSL encrypted data.
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static interface | |
| private static class | |
| private static class | |
| protected static class |
| Modifier and Type | Field and Description |
|---|---|
| protected static final MessageCloner | |
| protected final Set | |
| private long | |
| private static final Logger | |
| private static final SSLConnectionContext. | |
| private SSLBaseFilter. | |
| private static final SSLConnectionContext. | |
| private final boolean | |
| private volatile boolean | |
| private final SSLEngineConfigurator |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SSLBaseFilter(SSLEngineConfigurator
SSLEngine configurator for server side connections serverSSLEngineConfigurator)Build SSLFilter with the given |
| public | SSLBaseFilter(SSLEngineConfigurator
SSLEngine configurator for server side connections serverSSLEngineConfigurator, 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 |
|---|---|
| public void | |
| protected SSLBaseFilter. | |
| protected SSLConnectionContext | |
| protected Buffer | doHandshakeStep(final SSLConnectionContext sslCtx, final FilterChainContext ctx, Buffer inputBuffer)
|
| protected Buffer | doHandshakeStep(final SSLConnectionContext sslCtx, final FilterChainContext ctx, Buffer inputBuffer, final Buffer tmpAppBuffer0)
|
| protected Buffer | doHandshakeSync(final SSLConnectionContext sslCtx, final FilterChainContext ctx, Buffer inputBuffer, final long timeoutMillis)
|
| private static X509Certificate[] | |
| public long | getHandshakeTimeout(final TimeUnit timeUnit)
Returns: the handshake timeout, |
| protected SSLBaseFilter. | |
| protected void | getPeerCertificateChain(final SSLConnectionContext
the sslCtx, final FilterChainContext SSLConnectionContext associated with this certificate request.the context, final boolean FilterChainContext associated with this this certificate request.determines whether or not SSL renegotiation will be attempted to obtain the certificate chain. needClientAuth, final FutureImpl<Object[]> the future that will be provided the result of the peer certificate processing. certFuture)Obtains the certificate chain for this SSL session. |
| private static Certificate[] | |
| public SSLEngineConfigurator | getServerSSLEngineConfigurator()
Returns: |
| public NextAction | handleEvent(final FilterChainContext ctx, final FilterChainEvent event)
Overrides org. Implements org. Handle custom event associated with the |
| public NextAction | handleRead(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when channel will become available for reading. |
| 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 boolean | isRenegotiateOnClientAuthWant()
Returns: 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. |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| private static FilterChainContext | obtainProtocolChainContext(final FilterChainContext ctx, final FilterChain completeProtocolFilterChain)
|
| protected SSLConnectionContext | |
| public void | onAdded(FilterChain filterChain)
Overrides org. Implements org. Method is called, when the Filter has been added to the passed |
| public void | onRemoved(final FilterChain filterChain)
Overrides org. Implements org. Method is called, when the Filter has been removed from the passed |
| private Buffer | |
| public void | |
| protected void | renegotiate(final SSLConnectionContext
the sslCtx, final FilterChainContext SSLConnectionContext associated with this this renegotiation request.the context)FilterChainContext associated with this this renegotiation request.Performs an SSL renegotiation. |
| public void | setHandshakeTimeout(final long
timeout value, or handshakeTimeout, final TimeUnit timeUnit)-1 means for non-blocking handshake mode.Sets the handshake timeout. |
| public void | setRenegotiationDisabled(boolean
true to disable renegotiation.Completely disables renegotiation. |
| private Buffer | |
| protected NextAction | |
| protected Buffer |