Class OpenSSLClientSessionContext

java.lang.Object
org.wildfly.openssl.OpenSSLClientSessionContext
All Implemented Interfaces:
SSLSessionContext

public final class OpenSSLClientSessionContext extends Object
OpenSSLSessionContext implementation which offers extra methods which are only useful for the client-side.
  • Field Details

    • sessions

      protected final Map<org.wildfly.openssl.OpenSSLSessionContext.Key,org.wildfly.openssl.OpenSSlSession> sessions
  • Method Details

    • setSessionTimeout

      public void setSessionTimeout(int seconds)
    • getSessionTimeout

      public int getSessionTimeout()
    • setSessionCacheSize

      public void setSessionCacheSize(int size)
    • getSessionCacheSize

      public int getSessionCacheSize()
    • setSessionCacheEnabled

      public void setSessionCacheEnabled(boolean enabled)
    • isSessionCacheEnabled

      public boolean isSessionCacheEnabled()
    • getHandshakeKey

      public org.wildfly.openssl.OpenSSLClientSessionContext.ClientSessionKey getHandshakeKey()
    • getSession

      public SSLSession getSession(byte[] bytes)
      Specified by:
      getSession in interface SSLSessionContext
    • getIds

      public Enumeration<byte[]> getIds()
      Specified by:
      getIds in interface SSLSessionContext
    • setTicketKeys

      public void setTicketKeys(byte[] keys)
      Sets the SSL session ticket keys of this context.
    • stats

      public OpenSSLSessionStats stats()
      Returns the stats of this context.
    • mergeHandshakeSession

      public void mergeHandshakeSession(SSLSession handshakeSession, byte[] sessionId)
    • clientSessionCreated

      protected void clientSessionCreated(long ssl, long sessionPointer, byte[] sessionId)