public interface TransportSecurityLayer
Modifier and Type | Method and Description |
---|---|
TlsDetails |
getTlsDetails()
Gets the details of a fully established TLS session.
|
void |
startTls(SSLContext sslContext,
NamedEndpoint endpoint,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier,
Timeout handshakeTimeout)
Starts TLS session over an existing network connection with the given SSL context.
|
default void |
startTls(SSLContext sslContext,
NamedEndpoint endpoint,
SSLBufferMode sslBufferMode,
SSLSessionInitializer initializer,
SSLSessionVerifier verifier,
Timeout handshakeTimeout,
FutureCallback<TransportSecurityLayer> callback)
Starts TLS session over an existing network connection with the given SSL context.
|
void startTls(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout) throws UnsupportedOperationException
NamedEndpoint
details are applicable for client side connections and
are used for host name verification, when supported by the SSL engine.sslContext
- SSL context to be used for this session.endpoint
- optional endpoint details for outgoing client side connections.sslBufferMode
- SSL buffer management mode.initializer
- SSL session initialization callback.verifier
- SSL session verification callback.handshakeTimeout
- the timeout to use while performing the TLS handshake; may be null
.UnsupportedOperationException
- Thrown the requested operation is not supported.default void startTls(SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) throws UnsupportedOperationException
NamedEndpoint
details are applicable for client side connections and
are used for host name verification, when supported by the SSL engine.sslContext
- SSL context to be used for this session.endpoint
- optional endpoint details for outgoing client side connections.sslBufferMode
- SSL buffer management mode.initializer
- SSL session initialization callback.verifier
- SSL session verification callback.handshakeTimeout
- the timeout to use while performing the TLS handshake; may be null
.UnsupportedOperationException
- Thrown the requested operation is not supported.TlsDetails getTlsDetails()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.