public interface ClientSessionCache extends SessionCache, Iterable<InetSocketAddress>
The session state with the related ip-address can be put to the cache and is retrieved when (re-)constructing the connection store. The connection will only contain connections with session tickets, which can only be used for resumption handshakes. The provided cache is required to be thread-safe because it will be accessed concurrently.
| Modifier and Type | Method and Description |
|---|---|
SessionId |
getSessionIdentity(InetSocketAddress peer)
Gets a session identity from the cache.
|
SessionTicket |
getSessionTicket(InetSocketAddress peer)
Gets a session ticket from the cache.
|
Iterator<InetSocketAddress> |
iterator() |
get, put, removeIterator<InetSocketAddress> iterator()
iterator in interface Iterable<InetSocketAddress>SessionTicket getSessionTicket(InetSocketAddress peer)
peer - socket address of peer.null if
the cache does not contain a session ticket with the given peer
address. The session ticket can only be used for resumption
handshakes.SessionId getSessionIdentity(InetSocketAddress peer)
peer - socket address of peer.null
if the cache does not contain a session identity with the given
peer address.Copyright © 2023 Eclipse Foundation. All rights reserved.