Package org.apache.hc.core5.reactor.ssl
Interface TransportSecurityLayer
-
- All Known Subinterfaces:
ProtocolIOSession
- All Known Implementing Classes:
InternalDataChannel
public interface TransportSecurityLayer
TLS capable session layer interface.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TlsDetails
getTlsDetails()
Returns details of a fully established TLS session.void
startTls(javax.net.ssl.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(javax.net.ssl.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.
-
-
-
Method Detail
-
startTls
void startTls(javax.net.ssl.SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout) throws java.lang.UnsupportedOperationException
Starts TLS session over an existing network connection with the given SSL context.NamedEndpoint
details are applicable for client side connections and are used for host name verification, when supported by the SSL engine.- Parameters:
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 benull
.- Throws:
java.lang.UnsupportedOperationException
-
startTls
default void startTls(javax.net.ssl.SSLContext sslContext, NamedEndpoint endpoint, SSLBufferMode sslBufferMode, SSLSessionInitializer initializer, SSLSessionVerifier verifier, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) throws java.lang.UnsupportedOperationException
Starts TLS session over an existing network connection with the given SSL context.NamedEndpoint
details are applicable for client side connections and are used for host name verification, when supported by the SSL engine.- Parameters:
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 benull
.- Throws:
java.lang.UnsupportedOperationException
- Since:
- 5.2
-
getTlsDetails
TlsDetails getTlsDetails()
Returns details of a fully established TLS session.- Returns:
- TLS session details.
-
-