| Modifier and Type | Class and Description |
|---|---|
static class |
SSLFilter.CertificateEvent |
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxPendingBytes |
| Constructor and Description |
|---|
SSLFilter() |
SSLFilter(SSLEngineConfigurator serverSSLEngineConfigurator,
SSLEngineConfigurator clientSSLEngineConfigurator)
Build SSLFilter with the given
SSLEngineConfigurator. |
SSLFilter(SSLEngineConfigurator serverSSLEngineConfigurator,
SSLEngineConfigurator clientSSLEngineConfigurator,
boolean renegotiateOnClientAuthWant)
Build SSLFilter with the given
SSLEngineConfigurator. |
| Modifier and Type | Method and Description |
|---|---|
protected Buffer |
doHandshakeStep(SSLEngine sslEngine,
FilterChainContext context) |
int |
getMaxPendingBytesPerConnection() |
protected Object[] |
getPeerCertificateChain(SSLEngine sslEngine,
FilterChainContext context,
boolean needClientAuth)
Obtains the certificate chain for this SSL session.
|
NextAction |
handleEvent(FilterChainContext ctx,
FilterChainEvent event)
Handle custom event associated with the
Connection. |
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
NextAction |
handleWrite(FilterChainContext ctx)
Execute a unit of processing work to be performed, when some data should
be written on channel.
|
void |
handshake(Connection connection,
CompletionHandler<SSLEngine> completionHandler) |
void |
handshake(Connection connection,
CompletionHandler<SSLEngine> completionHandler,
Object dstAddress) |
void |
handshake(Connection connection,
CompletionHandler<SSLEngine> completionHandler,
Object dstAddress,
SSLEngineConfigurator sslEngineConfigurator) |
protected void |
renegotiate(SSLEngine sslEngine,
FilterChainContext context)
Performs an SSL renegotiation.
|
void |
setMaxPendingBytesPerConnection(int maxPendingBytes)
Configures the maximum number of bytes that may be queued to be written
for a particular
Connection. |
getDecoder, getEncodercreateContext, exceptionOccurred, getFilterChain, getIndex, handleAccept, handleClose, handleConnect, onAdded, onFilterChainChanged, onRemovedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionOccurred, handleAccept, handleClose, handleConnect, onAdded, onFilterChainChanged, onRemovedpublic SSLFilter()
public SSLFilter(SSLEngineConfigurator serverSSLEngineConfigurator, SSLEngineConfigurator clientSSLEngineConfigurator)
SSLEngineConfigurator.serverSSLEngineConfigurator - SSLEngine configurator for server side connectionsclientSSLEngineConfigurator - SSLEngine configurator for client side connectionspublic SSLFilter(SSLEngineConfigurator serverSSLEngineConfigurator, SSLEngineConfigurator clientSSLEngineConfigurator, boolean renegotiateOnClientAuthWant)
SSLEngineConfigurator.serverSSLEngineConfigurator - SSLEngine configurator for server side connectionsclientSSLEngineConfigurator - SSLEngine configurator for client side connectionspublic NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
BaseFilterConnection.
This Filter may either complete the required processing and
return StopAction, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning InvokeAction.handleEvent in interface FilterhandleEvent in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleRead(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleRead in interface FilterhandleRead in class AbstractCodecFilter<Buffer,Buffer>ctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleWrite(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleWrite in interface FilterhandleWrite in class AbstractCodecFilter<Buffer,Buffer>ctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic int getMaxPendingBytesPerConnection()
Connection.
This value is related to the situation when we try to send application
data before SSL handshake completes, so the data should be stored and
sent on wire once handshake will be completed.public void setMaxPendingBytesPerConnection(int maxPendingBytes)
Connection.
This value is related to the situation when we try to send application
data before SSL handshake completes, so the data should be stored and
sent on wire once handshake will be completed.maxPendingBytes - maximum number of bytes that may be queued to be
written for a particular Connectionpublic void handshake(Connection connection, CompletionHandler<SSLEngine> completionHandler) throws IOException
IOExceptionpublic void handshake(Connection connection, CompletionHandler<SSLEngine> completionHandler, Object dstAddress) throws IOException
IOExceptionpublic void handshake(Connection connection, CompletionHandler<SSLEngine> completionHandler, Object dstAddress, SSLEngineConfigurator sslEngineConfigurator) throws IOException
IOExceptionprotected Buffer doHandshakeStep(SSLEngine sslEngine, FilterChainContext context) throws IOException
IOExceptionprotected void renegotiate(SSLEngine sslEngine, FilterChainContext context) throws IOException
sslEngine - the SSLEngine associated with this
this renegotiation request.context - the FilterChainContext associated with this
this renegotiation request.IOException - if an error occurs during SSL renegotiation.protected Object[] getPeerCertificateChain(SSLEngine sslEngine, FilterChainContext context, boolean needClientAuth) throws IOException
Obtains the certificate chain for this SSL session. If no certificates
are available, and needClientAuth is true, an SSL renegotiation
will be be triggered to request the certificates from the client.
sslEngine - the SSLEngine associated with this
certificate request.context - the FilterChainContext associated with this
this certificate request.needClientAuth - determines whether or not SSL renegotiation will
be attempted to obtain the certificate chain.Object[]. If no
certificate chain can be determined, this method will return
null.IOException - if an error occurs during renegotiation.Copyright © 2013 Oracle Corporation. All Rights Reserved.