| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private SSLClientSessionCache | |
| private final Map | sessionsByHostAndPort
Sessions indexed by host and port. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv synchronized NativeSslSession | getCachedSession(String hostName, int port, SSLParametersImpl sslParameters)
Gets the suitable session reference from the session cache container. |
| private NativeSslSession | Returns: cached session or null if none foundof server host, int of server port)Finds a cached session for the given host name and port. |
| pack-priv NativeSslSession | getSessionFromPersistentCache(byte[] sessionId)
Implements abstract org. |
| pack-priv void | onBeforeAddSession(NativeSslSession session)
Implements abstract org. |
| pack-priv void | onBeforeRemoveSession(NativeSslSession session)
Implements abstract org. |
| private void | |
| private void | |
| public void | |
| pack-priv int |
| persistentCache | back to summary |
|---|---|
| private SSLClientSessionCache persistentCache | |
| sessionsByHostAndPort | back to summary |
|---|---|
| private final Map<ClientSessionContext. Sessions indexed by host and port. Protect from concurrent access by holding a lock on sessionsByHostAndPort. Invariant: Each list includes either exactly one multi-use session or one or more single-use sessions. The types of sessions are never mixed, and adding a session of one kind will remove all sessions of the other kind.
| |
| ClientSessionContext | back to summary |
|---|---|
| pack-priv ClientSessionContext() | |
| getCachedSession | back to summary |
|---|---|
| pack-priv synchronized NativeSslSession getCachedSession(String hostName, int port, SSLParametersImpl sslParameters) Gets the suitable session reference from the session cache container. | |
| getSession | back to summary |
|---|---|
| private NativeSslSession getSession(String host, int port) Finds a cached session for the given host name and port.
| |
| getSessionFromPersistentCache | back to summary |
|---|---|
| pack-priv NativeSslSession getSessionFromPersistentCache(byte[] sessionId) Implements abstract org. Doc from org. Called for server sessions only. Retrieves the session by ID from the persistent cache. Visible for extension only, not intended to be called directly.
| |
| onBeforeAddSession | back to summary |
|---|---|
| pack-priv void onBeforeAddSession(NativeSslSession session) Implements abstract org. Doc from org. Called when the given session is about to be added. Used by Visible for extension only, not intended to be called directly.
| |
| onBeforeRemoveSession | back to summary |
|---|---|
| pack-priv void onBeforeRemoveSession(NativeSslSession session) Implements abstract org. Doc from org. Called when a session is about to be removed. Used by Visible for extension only, not intended to be called directly.
| |
| putSession | back to summary |
|---|---|
| private void putSession(ClientSessionContext. | |
| removeSession | back to summary |
|---|---|
| private void removeSession(ClientSessionContext. | |
| setPersistentCache | back to summary |
|---|---|
| public void setPersistentCache(SSLClientSessionCache persistentCache) Applications should not use this method. Instead use | |
| size | back to summary |
|---|---|
| pack-priv int size() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public int |
| host | back to summary |
|---|---|
| pack-priv final String host | |
| port | back to summary |
|---|---|
| pack-priv final int port | |
| HostAndPort | back to summary |
|---|---|
| pack-priv HostAndPort(String host, int port) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |