Class GlassFishSingleSignOn

    • Constructor Detail

      • GlassFishSingleSignOn

        public GlassFishSingleSignOn()
    • Method Detail

      • getReapInterval

        public int getReapInterval()
        Return expire thread interval (seconds)
      • setReapInterval

        public void setReapInterval​(int t)
        Set expire thread interval (seconds)
      • getMaxInactive

        public int getMaxInactive()
        Return max idle time for SSO entries (seconds)
      • setMaxInactive

        public void setMaxInactive​(int t)
        Set max idle time for SSO entries (seconds)
      • start

        public void start()
                   throws LifecycleException
        Prepare for the beginning of active use of the public methods of this component. This method should be called after configure(), and before any of the public methods of the component are utilized.
        Specified by:
        start in interface Lifecycle
        Overrides:
        start in class SingleSignOn
        Throws:
        LifecycleException - if this component detects a fatal error that prevents this component from being used
      • stop

        public void stop()
                  throws LifecycleException
        Gracefully terminate the active use of the public methods of this component. This method should be the last one called on a given instance of this component.
        Specified by:
        stop in interface Lifecycle
        Overrides:
        stop in class SingleSignOn
        Throws:
        LifecycleException - if this component detects a fatal error that needs to be reported
      • invoke

        public int invoke​(Request request,
                          Response response)
        Perform single-sign-on support processing for this request.
        Specified by:
        invoke in interface GlassFishValve
        Overrides:
        invoke in class SingleSignOn
        Parameters:
        request - The servlet request we are processing
        response - The servlet response we are creating
        Returns:
        the valve flag
      • deregister

        protected void deregister​(String ssoId)
        Deregister the specified single sign on identifier, and invalidate any associated sessions.
        Parameters:
        ssoId - Single sign on identifier to deregister
      • run

        public void run()
        The background thread that checks for SSO timeouts and shutdown.
        Specified by:
        run in interface Runnable
      • removeSession

        protected void removeSession​(String ssoId,
                                     Session session)
        Remove a single Session from a SingleSignOn. Called when a session is timed out and no longer active.
        Parameters:
        ssoId - Single sign on identifier from which to remove the session.
        session - the session to be removed.
      • getActiveSessionCount

        public int getActiveSessionCount()
        Gets the number of sessions participating in SSO
        Specified by:
        getActiveSessionCount in interface SingleSignOnMBean
        Returns:
        Number of sessions participating in SSO
      • getHitCount

        public int getHitCount()
        Gets the number of SSO cache hits
        Specified by:
        getHitCount in interface SingleSignOnMBean
        Returns:
        Number of SSO cache hits
      • getMissCount

        public int getMissCount()
        Gets the number of SSO cache misses
        Specified by:
        getMissCount in interface SingleSignOnMBean
        Returns:
        Number of SSO cache misses