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 Object implements SslSessionCache
  • 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:
      resize in interface SslSessionCache
    • addSession

      public void addSession(byte[] sessionId, byte[] session)
      Specified by:
      addSession in interface SslSessionCache
    • getSession

      public byte[] getSession(byte[] sessionId)
      Specified by:
      getSession in interface SslSessionCache
    • removeSession

      public void removeSession(byte[] sessionId)
      Specified by:
      removeSession in interface SslSessionCache