Class DefaultSingleSignOnSession
java.lang.Object
org.wildfly.security.http.util.sso.DefaultSingleSignOnSession
- All Implemented Interfaces:
AutoCloseable,IdentityCache,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 Summary
ConstructorsConstructorDescriptionDefaultSingleSignOnSession(SingleSignOnSessionContext context, HttpServerRequest request, String mechanismName, boolean programmatic) DefaultSingleSignOnSession(SingleSignOnSessionContext context, HttpServerRequest request, SingleSignOn sso) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes any resources associated with this single sign-on session.get()getId()The identifier associated with this session.booleanlogout()Performs a local logout if the incoming request is a logout message, otherwise do nothing.voidput(SecurityIdentity identity) remove()
-
Constructor Details
-
DefaultSingleSignOnSession
public DefaultSingleSignOnSession(SingleSignOnSessionContext context, HttpServerRequest request, String mechanismName, boolean programmatic) -
DefaultSingleSignOnSession
public DefaultSingleSignOnSession(SingleSignOnSessionContext context, HttpServerRequest request, SingleSignOn sso)
-
-
Method Details
-
getId
Description copied from interface:SingleSignOnSessionThe identifier associated with this session.- Specified by:
getIdin interfaceSingleSignOnSession- Returns:
- identifier associated with this session
-
get
- Specified by:
getin interfaceIdentityCache
-
put
- Specified by:
putin interfaceIdentityCache
-
remove
- Specified by:
removein interfaceIdentityCache
-
logout
public boolean logout()Description copied from interface:SingleSignOnSessionPerforms a local logout if the incoming request is a logout message, otherwise do nothing.- Specified by:
logoutin interfaceSingleSignOnSession- Returns:
trueif local session was invalidated. Otherwise,false
-
close
public void close()Description copied from interface:SingleSignOnSessionCloses any resources associated with this single sign-on session.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSingleSignOnSession
-