write(java. and onRead(java.
calls are passed through until startSsl() method is called, after which SSL handshake is started.
When SSL handshake is in progress, no data passed in write(java. are permitted until SSL handshake completes.
After SSL handshake has completed, all data passed in write method will be encrypted and data passed in
onRead(java. method will be decrypted.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static enum | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final HostnameVerifier | |
| private static final ByteBuffer | |
| private final ByteBuffer | |
| private Runnable | |
| private final String | |
| private final SSLEngine | |
| private volatile SslFilter. | |
| private static final String | |
| private volatile boolean | |
| private final SslFilter. |
| Access | Constructor and Description |
|---|---|
| pack-priv | SslFilter(Filter
a filter that is positioned under the SSL filter. downstreamFilter, SslEngineConfigurator configuration of SSL engine. sslEngineConfigurator, String server host (hostname or IP address), which will be used to verify authenticity of
the server (the provided host will be compared against the host in the certificate
provided by the server). IP address and hostname cannot be used interchangeably -
if a certificate contains hostname and an IP address of the server is provided
here,
the verification will fail. serverHost)SSL Filter constructor, takes upstream filter as a parameter. |
| pack-priv | SslFilter(Filter
a filter that is positioned under the SSL filter. downstreamFilter, SSLContext an SSLContent, usually from @code{ClientEndpointConfig#getSSLContext} sslContext, String server host (hostname or IP address), which will be used to verify authenticity of
the server (the provided host will be compared against the host in the certificate
provided by the server). IP address and hostname cannot be used interchangeably -
if a certificate contains hostname and an IP address of the server is provided
here,
the verification will fail. serverHost)SSL Filter constructor, takes upstream filter as a parameter. |
| pack-priv | SslFilter(Filter
a filter that is positioned under the SSL filter. downstreamFilter, SslEngineConfigurator sslEngineConfigurator)
Deprecated
Please use
SslFilter(Filter, org..
SSL Filter constructor, takes upstream filter as a parameter. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized void | close()
Overrides org. Close the filter, invokes close operation on the next filter in the filter chain. |
| private boolean | |
| private String | getDebugState()
Returns a printed current state of the SslFilter that could be helpful for troubleshooting. |
| private void | |
| private synchronized void | handlePostWrite(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler)
|
| private boolean | |
| private void | |
| private void | handleWrite(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler)
|
| private boolean | |
| pack-priv boolean | processRead(ByteBuffer
read data. networkData)Overrides org. Process |
| pack-priv void | |
| private void | |
| pack-priv void | startSsl()
Overrides org. Signal to turn on SSL, it is passed on in the filter chain until a filter responsible for SSL is reached. |
| private void | storePendingApplicationWrite(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler)
|
| pack-priv synchronized void | write(final ByteBuffer
on which write operation is performed. applicationData, final CompletionHandler<ByteBuffer> will be invoked when the write operation is completed or has failed. completionHandler)Overrides org. Perform write operation for this filter and invokes write method on the next filter in the filter chain. |
| applicationInputBuffer | back to summary |
|---|---|
| private final ByteBuffer applicationInputBuffer | |
| customHostnameVerifier | back to summary |
|---|---|
| private final HostnameVerifier customHostnameVerifier | |
| emptyBuffer | back to summary |
|---|---|
| private static final ByteBuffer emptyBuffer | |
| networkOutputBuffer | back to summary |
|---|---|
| private final ByteBuffer networkOutputBuffer | |
| pendingApplicationWrite | back to summary |
|---|---|
| private Runnable pendingApplicationWrite | |
| serverHost | back to summary |
|---|---|
| private final String serverHost | |
| sslEngine | back to summary |
|---|---|
| private final SSLEngine sslEngine | |
| state | back to summary |
|---|---|
| private volatile SslFilter. | |
| TLSV13 | back to summary |
|---|---|
| private static final String TLSV13 | |
| tlsv13 | back to summary |
|---|---|
| private volatile boolean tlsv13 | |
| writeQueue | back to summary |
|---|---|
| private final SslFilter. | |
| SslFilter | back to summary |
|---|---|
| pack-priv SslFilter(Filter downstreamFilter, SslEngineConfigurator sslEngineConfigurator, String serverHost) SSL Filter constructor, takes upstream filter as a parameter.
| |
| SslFilter | back to summary |
|---|---|
| pack-priv SslFilter(Filter downstreamFilter, SSLContext sslContext, String serverHost) SSL Filter constructor, takes upstream filter as a parameter.
| |
| SslFilter | back to summary |
|---|---|
| pack-priv SslFilter(Filter downstreamFilter, SslEngineConfigurator sslEngineConfigurator)
Deprecated Please use SSL Filter constructor, takes upstream filter as a parameter.
| |
| close | back to summary |
|---|---|
| pack-priv synchronized void close() Overrides org. Doc from org. Close the filter, invokes close operation on the next filter in the filter chain. The filter is expected to clean up any allocated resources and pass the invocation to downstream filter.
| |
| doHandshakeStep | back to summary |
|---|---|
| private boolean doHandshakeStep(ByteBuffer networkData) | |
| getDebugState | back to summary |
|---|---|
| private String getDebugState() Returns a printed current state of the SslFilter that could be helpful for troubleshooting. | |
| handleHandshakeFinished | back to summary |
|---|---|
| private void handleHandshakeFinished() | |
| handlePostWrite | back to summary |
|---|---|
| private synchronized void handlePostWrite(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler) | |
| handleRead | back to summary |
|---|---|
| private boolean handleRead(ByteBuffer networkData) | |
| handleSslError | back to summary |
|---|---|
| private void handleSslError(Throwable t) | |
| handleWrite | back to summary |
|---|---|
| private void handleWrite(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler) | |
| isHandshaking | back to summary |
|---|---|
| private boolean isHandshaking(SSLEngineResult. | |
| processRead | back to summary |
|---|---|
| pack-priv boolean processRead(ByteBuffer networkData) Overrides org. Doc from org. Process
| |
| rehandshake | back to summary |
|---|---|
| pack-priv void rehandshake() Only for test. | |
| setState | back to summary |
|---|---|
| private void setState(SslFilter. | |
| startSsl | back to summary |
|---|---|
| pack-priv void startSsl() Overrides org. Doc from org. Signal to turn on SSL, it is passed on in the filter chain until a filter responsible for SSL is reached.
| |
| storePendingApplicationWrite | back to summary |
|---|---|
| private void storePendingApplicationWrite(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler) | |
| write | back to summary |
|---|---|
| pack-priv synchronized void write(final ByteBuffer applicationData, final CompletionHandler<ByteBuffer> completionHandler) Overrides org. Doc from org. Perform write operation for this filter and invokes write method on the next filter in the filter chain.
| |
| Modifier and Type | Field and Description |
|---|---|
| private ByteBuffer |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| pack-priv ByteBuffer | |
| pack-priv boolean | |
| pack-priv void |
| buffer | back to summary |
|---|---|
| private ByteBuffer buffer | |
| LazyBuffer | back to summary |
|---|---|
| private LazyBuffer() | |
| append | back to summary |
|---|---|
| pack-priv void append(ByteBuffer b) | |
| get | back to summary |
|---|---|
| pack-priv ByteBuffer get() | |
| isAllocated | back to summary |
|---|---|
| pack-priv boolean isAllocated() | |
| resize | back to summary |
|---|---|
| pack-priv void resize() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SslFilter. | |
| public static final SslFilter. | |
| public static final SslFilter. | |
| public static final SslFilter. | |
| public static final SslFilter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SslFilter. | |
| public static SslFilter. |
| CLOSED | back to summary |
|---|---|
| public static final SslFilter. | |
| DATA | back to summary |
|---|---|
| public static final SslFilter. | |
| HANDSHAKING | back to summary |
|---|---|
| public static final SslFilter. | |
| NOT_STARTED | back to summary |
|---|---|
| public static final SslFilter. | |
| REHANDSHAKING | back to summary |
|---|---|
| public static final SslFilter. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static SslFilter. | |
| values | back to summary |
|---|---|
| public static SslFilter. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public String | |
| pack-priv void |
| pendingWrites | back to summary |
|---|---|
| private final Queue<Runnable> pendingWrites | |
| WriteQueue | back to summary |
|---|---|
| private WriteQueue() | |
| onWriteCompleted | back to summary |
|---|---|
| private void onWriteCompleted() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| pack-priv void write(final ByteBuffer data, final CompletionHandler<ByteBuffer> completionHandler) | |