Class OpenSSLSessionContext

  • All Implemented Interfaces:

    public class OpenSSLSessionContext
    extends java.lang.Object
    OpenSSL specific SSLSessionContext implementation.
    • Method Detail

      • getSession

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

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

        public void setTicketKeys​(byte[] keys)
        Sets the SSL session ticket keys of this context.
        keys - The session ticket keys
      • setSessionCacheEnabled

        public void setSessionCacheEnabled​(boolean enabled)
        Enable or disable caching of SSL sessions.
        enabled - true to enable caching, false to disable
      • isSessionCacheEnabled

        public boolean isSessionCacheEnabled()
        true if caching of SSL sessions is enabled, false otherwise.
      • setSessionTimeout

        public void setSessionTimeout​(int seconds)
        Specified by:
        setSessionTimeout in interface
      • getSessionTimeout

        public int getSessionTimeout()
        Specified by:
        getSessionTimeout in interface
      • setSessionCacheSize

        public void setSessionCacheSize​(int size)
        Specified by:
        setSessionCacheSize in interface
      • getSessionCacheSize

        public int getSessionCacheSize()
        Specified by:
        getSessionCacheSize in interface
      • setSessionIdContext

        public boolean setSessionIdContext​(byte[] sidCtx)
        Set the context within which session be reused (server side only) See man SSL_CTX_set_session_id_context
        sidCtx - can be any kind of binary data, it is therefore possible to use e.g. the name of the application and/or the hostname and/or service name
        true if success, false otherwise.