Class SessionManagerImpl

  • All Implemented Interfaces:
    com.sun.xml.ws.commons.MOMRegistrationAware

    public class SessionManagerImpl
    extends SessionManager
    In memory implementation of SessionManager
    Author:
    Mike Grogan
    • Constructor Detail

      • SessionManagerImpl

        public SessionManagerImpl​(com.sun.xml.ws.api.server.WSEndpoint endpoint,
                                  boolean isSC)
        Creates a new instance of SessionManagerImpl
      • SessionManagerImpl

        public SessionManagerImpl​(com.sun.xml.ws.api.server.WSEndpoint endpoint,
                                  boolean isSC,
                                  Properties config)
        Creates a new instance of SessionManagerImpl
    • Method Detail

      • getSession

        public Session getSession​(String key)
        Returns an existing session identified by the Key else null
        Specified by:
        getSession in class SessionManager
        Parameters:
        key - The Session key.
      • terminateSession

        public void terminateSession​(String key)
        Removed the Session with the given key.
        Specified by:
        terminateSession in class SessionManager
        Parameters:
        key - The key of the Session to be removed.
      • createSession

        public Session createSession​(String key,
                                     Class clasz)
        Creates a Session with the given key, using a new instance of the specified Class as a holder for user-defined data. The specified Class must have a default constructor.
        Specified by:
        createSession in class SessionManager
        Parameters:
        key - The Session key to be used.
      • createSession

        public Session createSession​(String key,
                                     Object obj)
        Creates a Session with the given key, using the specified Object as a holder for user-defined data.
        Specified by:
        createSession in class SessionManager
        Parameters:
        key - The Session key to be used.
        obj - The object to use as a holder for user data in the session.
      • createSession

        public Session createSession​(String key)
        Creates a Session with the given key, using an instance of synchronized java.util.Map a sa holder for user-defined data.
        Specified by:
        createSession in class SessionManager
        Parameters:
        key - The Session key to be used.
      • saveSession

        public void saveSession​(String key)
        Does nothing in this implementation.
        Specified by:
        saveSession in class SessionManager
        Parameters:
        key - The key of the session to be saved
      • addSecurityContext

        public void addSecurityContext​(String key,
                                       IssuedTokenContext itctx)
        Add the SecurityContext with key in local cache
        Specified by:
        addSecurityContext in class SessionManager
        Parameters:
        key - The key of the security context to be stored
        itctx - The IssuedTokenContext to be stored