TransportSecurityLayer sessions.
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the session has been upgraded, false otherwise.the session layer sessionLayer, HttpHost the name of the opposite endpoint when given or host, SocketAddress null otherwise.the address of the local endpoint. localAddress, SocketAddress the address of the remote endpoint. remoteAddress, Object arbitrary object passes to the TLS session initialization code. attachment, Timeout the timeout to use while performing the TLS handshake; may be handshakeTimeout)
Secures current session layer with TLS.
null. |
| public default void | upgrade(TransportSecurityLayer
the session layer sessionLayer, NamedEndpoint the name of the opposite endpoint when applicable or endpoint, Object null otherwise.arbitrary object passes to the TLS session initialization code. attachment, Timeout the timeout to use while performing the TLS handshake; may be handshakeTimeout, FutureCallback<TransportSecurityLayer> null.Operation result callback. callback)Secures current session layer with TLS. |
| upgrade | back to summary |
|---|---|
| public boolean upgrade(TransportSecurityLayer sessionLayer, HttpHost host, SocketAddress localAddress, SocketAddress remoteAddress, Object attachment, Timeout handshakeTimeout)
Secures current session layer with TLS.
| |
| upgrade | back to summary |
|---|---|
| public default void upgrade(TransportSecurityLayer sessionLayer, NamedEndpoint endpoint, Object attachment, Timeout handshakeTimeout, FutureCallback<TransportSecurityLayer> callback) Secures current session layer with TLS.
| |