Class InMemorySessionIdMapper

  • All Implemented Interfaces:
    SessionIdMapper

    public class InMemorySessionIdMapper
    extends Object
    implements SessionIdMapper
    Maps external principal and SSO id to internal local http session id
    Version:
    $Revision: 1 $
    Author:
    Bill Burke
    • Constructor Detail

      • InMemorySessionIdMapper

        public InMemorySessionIdMapper()
    • Method Detail

      • hasSession

        public boolean hasSession​(String id)
        Description copied from interface: SessionIdMapper
        Returns true if the mapper contains mapping for the given HTTP session ID.
        Specified by:
        hasSession in interface SessionIdMapper
        Returns:
      • map

        public void map​(String sso,
                        String principal,
                        String session)
        Description copied from interface: SessionIdMapper
        Establishes mapping between user session ID, principal and HTTP session ID.
        Specified by:
        map in interface SessionIdMapper
        Parameters:
        sso - User session ID
        principal - Principal
        session - HTTP session ID
      • removeSession

        public void removeSession​(String session)
        Description copied from interface: SessionIdMapper
        Removes mappings for the given HTTP session ID.
        Specified by:
        removeSession in interface SessionIdMapper
        Parameters:
        session - HTTP session ID.