TlsStrategy that upgrades to TLS for endpoints
with the specified local ports.
| Modifier and Type | Field and Description |
|---|---|
| private final SSLSessionInitializer | |
| private final SecurePortStrategy | securePortStrategy
Deprecated
as a consequence of
SecurePortStrategy being deprecated.
|
| private final SSLBufferMode | |
| private final SSLContext | |
| private final SSLSessionVerifier |
| Access | Constructor and Description |
|---|---|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy, final SSLBufferMode sslBufferMode, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier)
|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier)
|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy, final SSLSessionVerifier verifier)
|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy)
|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final int... securePorts)
|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final SSLBufferMode sslBufferMode, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier)
|
| public | ConscryptServerTlsStrategy(final SSLContext sslContext, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier)
|
| public | |
| public | |
| public | ConscryptServerTlsStrategy()
Empty constructor with the default SSL context based on system properties. |
| public | ConscryptServerTlsStrategy(final SSLSessionVerifier
the custom verifier)SSLSessionVerifier.Constructor with the default SSL context based on system properties and custom |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | upgrade(final TransportSecurityLayer
the session layer tlsSession, final NamedEndpoint the name of the opposite endpoint when applicable or endpoint, final Object null otherwise.arbitrary object passes to the TLS session initialization code. attachment, final Timeout the timeout to use while performing the TLS handshake; may be handshakeTimeout, final FutureCallback<TransportSecurityLayer> null.Operation result callback. callback)Overrides default org. |
| public boolean | upgrade(final TransportSecurityLayer
the session layer tlsSession, final HttpHost the name of the opposite endpoint when given or host, final SocketAddress null otherwise.the address of the local endpoint. localAddress, final SocketAddress the address of the remote endpoint. remoteAddress, final Object arbitrary object passes to the TLS session initialization code. attachment, final Timeout the timeout to use while performing the TLS handshake; may be handshakeTimeout)null.Implements org. |
| initializer | back to summary |
|---|---|
| private final SSLSessionInitializer initializer | |
| securePortStrategy | back to summary |
|---|---|
| private final SecurePortStrategy securePortStrategy
Deprecated as a consequence of
| |
| sslBufferMode | back to summary |
|---|---|
| private final SSLBufferMode sslBufferMode | |
| sslContext | back to summary |
|---|---|
| private final SSLContext sslContext | |
| verifier | back to summary |
|---|---|
| private final SSLSessionVerifier verifier | |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy, final SSLBufferMode sslBufferMode, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier)
Deprecated
| |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier)
Deprecated
| |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy, final SSLSessionVerifier verifier)
Deprecated Use
| |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
public ConscryptServerTlsStrategy(final SSLContext sslContext, final SecurePortStrategy securePortStrategy)
| |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
public ConscryptServerTlsStrategy(final SSLContext sslContext, final int... securePorts)
| |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext, final SSLBufferMode sslBufferMode, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier) | |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext, final SSLSessionInitializer initializer, final SSLSessionVerifier verifier) | |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext, final SSLSessionVerifier verifier) | |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLContext sslContext) | |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy() Empty constructor with the default SSL context based on system properties.
| |
| ConscryptServerTlsStrategy | back to summary |
|---|---|
| public ConscryptServerTlsStrategy(final SSLSessionVerifier verifier) Constructor with the default SSL context based on system properties and custom
| |
| isApplicable | back to summary |
|---|---|
| private boolean isApplicable(final SocketAddress localAddress) | |
| upgrade | back to summary |
|---|---|
| public void upgrade(final TransportSecurityLayer tlsSession, final NamedEndpoint endpoint, final Object attachment, final Timeout handshakeTimeout, final FutureCallback<TransportSecurityLayer> callback) Overrides default org. Doc from org. Secures current session layer with TLS.
| |
| upgrade | back to summary |
|---|---|
| public boolean upgrade(final TransportSecurityLayer tlsSession, final HttpHost host, final SocketAddress localAddress, final SocketAddress remoteAddress, final Object attachment, final Timeout handshakeTimeout) Implements org. Doc from org. Secures current session layer with TLS.
| |