Package org.conscrypt
Class ClientSessionContext
- java.lang.Object
-
- org.conscrypt.ClientSessionContext
-
- All Implemented Interfaces:
SSLSessionContext
@Internal public final class ClientSessionContext extends Object
Caches client sessions. Indexes by host and port. Users are typically looking to reuse any session for a given host and port.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Enumeration<byte[]>getIds()This method is provided for API-compatibility only, not intended for use.SSLSessiongetSession(byte[] sessionId)This is provided for API-compatibility only, not intended for use.intgetSessionCacheSize()intgetSessionTimeout()voidsetPersistentCache(SSLClientSessionCache persistentCache)Applications should not use this method.voidsetSessionCacheSize(int size)voidsetSessionTimeout(int seconds)
-
-
-
Method Detail
-
setPersistentCache
public void setPersistentCache(SSLClientSessionCache persistentCache)
Applications should not use this method. Instead useConscrypt.setClientSessionCache(SSLContext, SSLClientSessionCache).
-
getIds
public final Enumeration<byte[]> getIds()
This method is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance.- Specified by:
getIdsin interfaceSSLSessionContext
-
getSession
public final SSLSession getSession(byte[] sessionId)
This is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance or the validity of the returned session.- Specified by:
getSessionin interfaceSSLSessionContext
-
getSessionCacheSize
public final int getSessionCacheSize()
- Specified by:
getSessionCacheSizein interfaceSSLSessionContext
-
getSessionTimeout
public final int getSessionTimeout()
- Specified by:
getSessionTimeoutin interfaceSSLSessionContext
-
setSessionTimeout
public final void setSessionTimeout(int seconds) throws IllegalArgumentException- Specified by:
setSessionTimeoutin interfaceSSLSessionContext- Throws:
IllegalArgumentException
-
setSessionCacheSize
public final void setSessionCacheSize(int size) throws IllegalArgumentException- Specified by:
setSessionCacheSizein interfaceSSLSessionContext- Throws:
IllegalArgumentException
-
-