Package one.nio.net
Class SslSessionCache.Default
- java.lang.Object
-
- one.nio.net.SslSessionCache.Default
-
- All Implemented Interfaces:
SslSessionCache
- Enclosing interface:
- SslSessionCache
public static class SslSessionCache.Default extends java.lang.Object implements SslSessionCache
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.nio.net.SslSessionCache
SslSessionCache.Default, SslSessionCache.Singleton
-
-
Field Summary
Fields Modifier and Type Field Description private sun.security.util.Cache<sun.security.util.Cache.EqualByteArray,byte[]>cache(package private) static intCAPACITY-
Fields inherited from interface one.nio.net.SslSessionCache
log
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSession(byte[] sessionId, byte[] session)byte[]getSession(byte[] sessionId)voidremoveSession(byte[] sessionId)voidresize(int maxSize)private static sun.security.util.Cache.EqualByteArraytoKey(byte[] bytes)
-
-
-
Method Detail
-
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
-
-