Package org.conscrypt
Class ClientSessionContext
java.lang.Object
org.conscrypt.ClientSessionContext
- All Implemented Interfaces:
SSLSessionContext
Caches client sessions. Indexes by host and port. Users are typically
looking to reuse any session for a given host and port.
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()final Enumeration<byte[]> getIds()This method is provided for API-compatibility only, not intended for use.final SSLSessiongetSession(byte[] sessionId) This is provided for API-compatibility only, not intended for use.final intfinal intvoidsetPersistentCache(SSLClientSessionCache persistentCache) Applications should not use this method.final voidsetSessionCacheSize(int size) final voidsetSessionTimeout(int seconds)
-
Method Details
-
setPersistentCache
Applications should not use this method. Instead useConscrypt.setClientSessionCache(SSLContext, SSLClientSessionCache). -
getIds
This method is provided for API-compatibility only, not intended for use. No guarantees are made WRT performance.- Specified by:
getIdsin interfaceSSLSessionContext
-
getSession
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
- Specified by:
setSessionTimeoutin interfaceSSLSessionContext- Throws:
IllegalArgumentException
-
setSessionCacheSize
- Specified by:
setSessionCacheSizein interfaceSSLSessionContext- Throws:
IllegalArgumentException
-
finalize
-