Class DefaultSingleSignOnManager
- java.lang.Object
-
- org.wildfly.security.http.util.sso.DefaultSingleSignOnManager
-
- All Implemented Interfaces:
SingleSignOnManager
public class DefaultSingleSignOnManager extends Object implements SingleSignOnManager
- Author:
- Paul Ferraro
-
-
Field Summary
Fields Modifier and Type Field Description private ConcurrentMap<String,SingleSignOnEntry>
cache
private Supplier<String>
identifierFactory
private BiConsumer<String,SingleSignOnEntry>
mutator
-
Constructor Summary
Constructors Constructor Description DefaultSingleSignOnManager(ConcurrentMap<String,SingleSignOnEntry> cache, Supplier<String> identifierFactory)
DefaultSingleSignOnManager(ConcurrentMap<String,SingleSignOnEntry> cache, Supplier<String> identifierFactory, BiConsumer<String,SingleSignOnEntry> mutator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SingleSignOn
create(String mechanismName, boolean programmatic, SecurityIdentity identity)
Creates a single sign-on entry using the specified mechanism and security identitySingleSignOn
find(String id)
Locates the single sign-on entry with the specified identifier, or null if none exists.
-
-
-
Field Detail
-
cache
private final ConcurrentMap<String,SingleSignOnEntry> cache
-
mutator
private final BiConsumer<String,SingleSignOnEntry> mutator
-
-
Constructor Detail
-
DefaultSingleSignOnManager
public DefaultSingleSignOnManager(ConcurrentMap<String,SingleSignOnEntry> cache, Supplier<String> identifierFactory)
-
DefaultSingleSignOnManager
public DefaultSingleSignOnManager(ConcurrentMap<String,SingleSignOnEntry> cache, Supplier<String> identifierFactory, BiConsumer<String,SingleSignOnEntry> mutator)
-
-
Method Detail
-
create
public SingleSignOn create(String mechanismName, boolean programmatic, SecurityIdentity identity)
Description copied from interface:SingleSignOnManager
Creates a single sign-on entry using the specified mechanism and security identity- Specified by:
create
in interfaceSingleSignOnManager
- Parameters:
mechanismName
- an authentication mechanism nameprogrammatic
- indicates if this identity was created as a result of programmatic authenticationidentity
- a security identity of the authenticated user- Returns:
- a single sign-on entry
-
find
public SingleSignOn find(String id)
Description copied from interface:SingleSignOnManager
Locates the single sign-on entry with the specified identifier, or null if none exists.- Specified by:
find
in interfaceSingleSignOnManager
- Parameters:
id
- a single sign-on entry identifier- Returns:
- a single sign-on entry, or null if none was found
-
-