Class DefaultSessionKey

    • Method Detail

      • getSessionId

        public Serializable getSessionId()
        Description copied from interface: SessionKey
        Returns the id of the session to acquire.

        Acquiring sessions by ID only is a suitable strategy when sessions are natively managed by Shiro directly. For example, the Servlet specification does not have an API that allows session acquisition by session ID, so the session ID alone is not sufficient for ServletContainer-based SessionManager implementations.

        Specified by:
        getSessionId in interface SessionKey
        the id of the session to acquire.