Class SslSessionCache.Default
java.lang.Object
one.nio.net.SslSessionCache.Default
- All Implemented Interfaces:
SslSessionCache
- Enclosing interface:
SslSessionCache
-
Nested Class Summary
Nested classes/interfaces inherited from interface SslSessionCache
SslSessionCache.Default, SslSessionCache.Singleton -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final sun.security.util.Cache<sun.security.util.Cache.EqualByteArray, byte[]> (package private) static intFields inherited from interface SslSessionCache
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSession(byte[] sessionId, byte[] session) byte[]getSession(byte[] sessionId) voidremoveSession(byte[] sessionId) voidresize(int maxSize) private static sun.security.util.Cache.EqualByteArraytoKey(byte[] bytes)
-
Field Details
-
cache
private final sun.security.util.Cache<sun.security.util.Cache.EqualByteArray, byte[]> cache -
CAPACITY
static int CAPACITY
-
-
Constructor Details
-
Default
public Default(int maxSize) -
Default
public Default()
-
-
Method Details
-
toKey
private static sun.security.util.Cache.EqualByteArray toKey(byte[] bytes) -
resize
public void resize(int maxSize) - Specified by:
resizein interfaceSslSessionCache
-
addSession
public void addSession(byte[] sessionId, byte[] session) - Specified by:
addSessionin interfaceSslSessionCache
-
getSession
public byte[] getSession(byte[] sessionId) - Specified by:
getSessionin interfaceSslSessionCache
-
removeSession
public void removeSession(byte[] sessionId) - Specified by:
removeSessionin interfaceSslSessionCache
-