Class DefaultSingleSignOnSession

java.lang.Object
org.wildfly.security.http.util.sso.DefaultSingleSignOnSession
All Implemented Interfaces:
AutoCloseable, org.wildfly.security.cache.IdentityCache, SingleSignOnSession

public class DefaultSingleSignOnSession extends Object implements SingleSignOnSession
SingleSignOnSession that delegates its persistence strategy to a SingleSignOnManager. SingleSignOn entries are created lazily in response to put(SecurityIdentity).
This implementation supports single logout in order to invalidate local sessions for each participant of a single sign-on session, where participants represent the applications with active sessions associated with a given single sign-on session.
Author:
Paul Ferraro
  • Constructor Details

    • DefaultSingleSignOnSession

      public DefaultSingleSignOnSession(SingleSignOnSessionContext context, org.wildfly.security.http.HttpServerRequest request, String mechanismName, boolean programmatic)
    • DefaultSingleSignOnSession

      public DefaultSingleSignOnSession(SingleSignOnSessionContext context, org.wildfly.security.http.HttpServerRequest request, SingleSignOn sso)
  • Method Details

    • getId

      public String getId()
      Description copied from interface: SingleSignOnSession
      The identifier associated with this session.
      Specified by:
      getId in interface SingleSignOnSession
      Returns:
      identifier associated with this session
    • get

      public org.wildfly.security.cache.CachedIdentity get()
      Specified by:
      get in interface org.wildfly.security.cache.IdentityCache
    • put

      public void put(org.wildfly.security.auth.server.SecurityIdentity identity)
      Specified by:
      put in interface org.wildfly.security.cache.IdentityCache
    • remove

      public org.wildfly.security.cache.CachedIdentity remove()
      Specified by:
      remove in interface org.wildfly.security.cache.IdentityCache
    • logout

      public boolean logout()
      Description copied from interface: SingleSignOnSession
      Performs a local logout if the incoming request is a logout message, otherwise do nothing.
      Specified by:
      logout in interface SingleSignOnSession
      Returns:
      true if local session was invalidated. Otherwise, false
    • close

      public void close()
      Description copied from interface: SingleSignOnSession
      Closes any resources associated with this single sign-on session.
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface SingleSignOnSession