Top Inners Fields Constructors Methods
io.undertow.security.impl

public Class InMemorySingleSignOnManager

extends Object
implements SingleSignOnManager
Class Inheritance
All Implemented Interfaces
io.undertow.security.impl.SingleSignOnManager
Imports
java.util.Collections, .Iterator, .Map, java.util.concurrent.ConcurrentHashMap, io.undertow.security.idm.Account, io.undertow.server.session.SecureRandomSessionIdGenerator, .Session, .SessionManager, io.undertow.util.CopyOnWriteMap, org.jboss.logging.Logger

Authors
Stuart Douglas, Paul Ferraro

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Logger
private static final SecureRandomSessionIdGenerator
private final Map<String, SingleSignOn>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SingleSignOn
public SingleSignOn
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log
SECURE_RANDOM_SESSION_ID_GENERATORback to summary
private static final SecureRandomSessionIdGenerator SECURE_RANDOM_SESSION_ID_GENERATOR
ssoEntriesback to summary
private final Map<String, SingleSignOn> ssoEntries

Constructor Detail

InMemorySingleSignOnManagerback to summary
public InMemorySingleSignOnManager()

Method Detail

createSingleSignOnback to summary
public SingleSignOn createSingleSignOn(Account account, String mechanism)

Implements io.undertow.security.impl.SingleSignOnManager.createSingleSignOn.

Annotations
@Override
findSingleSignOnback to summary
public SingleSignOn findSingleSignOn(String ssoId)

Implements io.undertow.security.impl.SingleSignOnManager.findSingleSignOn.

Annotations
@Override
removeSingleSignOnback to summary
public void removeSingleSignOn(SingleSignOn sso)

Implements io.undertow.security.impl.SingleSignOnManager.removeSingleSignOn.

Annotations
@Override
io.undertow.security.impl back to summary

private Class InMemorySingleSignOnManager.SimpleSingleSignOnEntry

extends Object
implements SingleSignOn
Class Inheritance
  • java.lang.Object
  • io.undertow.security.impl.InMemorySingleSignOnManager.SimpleSingleSignOnEntry
All Implemented Interfaces
io.undertow.security.impl.SingleSignOn, java.lang.AutoCloseable, java.lang.Iterable

Field Summary

Modifier and TypeField and Description
private final Account
private final String
private final String
private final Map<SessionManager, Session>

Constructor Summary

AccessConstructor and Description
pack-priv
SimpleSingleSignOnEntry(String id, Account account, String mechanismName)

Method Summary

Modifier and TypeMethod and Description
public void
add(Session
a session manager
session
)

Implements io.undertow.security.impl.SingleSignOn.add.

Adds the specified session to the set of sessions to which the user is authenticated

public void
close()

Implements io.undertow.security.impl.SingleSignOn.close.

Releases any resources acquired by this object.

public boolean
contains(Session
a session manager
session
)

Implements io.undertow.security.impl.SingleSignOn.contains.

Indicates whether or not the specified session is contained in the set of sessions to which the user is authenticated

public Account
getAccount()

Implements io.undertow.security.impl.SingleSignOn.getAccount.

Returns the account associated with this SSO.

public String
getId()

Implements io.undertow.security.impl.SingleSignOn.getId.

Returns the unique identifier for this SSO.

public String
getMechanismName()

Implements io.undertow.security.impl.SingleSignOn.getMechanismName.

Returns the authentication mechanism used to create the account associated with this SSO.

public Session
getSession(SessionManager
a session manager
manager
)

Implements io.undertow.security.impl.SingleSignOn.getSession.

Returns the session associated with the deployment of the specified session manager

public Iterator<Session>
iterator()

Implements java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

public void
remove(Session
a session manager
session
)

Implements io.undertow.security.impl.SingleSignOn.remove.

Removes the specified session from the set of sessions to which the user is authenticated

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

accountback to summary
private final Account account
idback to summary
private final String id
mechanismNameback to summary
private final String mechanismName
sessionsback to summary
private final Map<SessionManager, Session> sessions

Constructor Detail

SimpleSingleSignOnEntryback to summary
pack-priv SimpleSingleSignOnEntry(String id, Account account, String mechanismName)

Method Detail

addback to summary
public void add(Session session)

Implements io.undertow.security.impl.SingleSignOn.add.

Doc from io.undertow.security.impl.SingleSignOn.add.

Adds the specified session to the set of sessions to which the user is authenticated

Parameters
session:Session

a session manager

Annotations
@Override
closeback to summary
public void close()

Implements io.undertow.security.impl.SingleSignOn.close.

Doc from io.undertow.security.impl.SingleSignOn.close.

Releases any resources acquired by this object. Must be called after this object is no longer in use.

Annotations
@Override
containsback to summary
public boolean contains(Session session)

Implements io.undertow.security.impl.SingleSignOn.contains.

Doc from io.undertow.security.impl.SingleSignOn.contains.

Indicates whether or not the specified session is contained in the set of sessions to which the user is authenticated

Parameters
session:Session

a session manager

Annotations
@Override
getAccountback to summary
public Account getAccount()

Implements io.undertow.security.impl.SingleSignOn.getAccount.

Doc from io.undertow.security.impl.SingleSignOn.getAccount.

Returns the account associated with this SSO.

Returns:Account

an account

Annotations
@Override
getIdback to summary
public String getId()

Implements io.undertow.security.impl.SingleSignOn.getId.

Doc from io.undertow.security.impl.SingleSignOn.getId.

Returns the unique identifier for this SSO.

Returns:String

this SSO's unique identifier

Annotations
@Override
getMechanismNameback to summary
public String getMechanismName()

Implements io.undertow.security.impl.SingleSignOn.getMechanismName.

Doc from io.undertow.security.impl.SingleSignOn.getMechanismName.

Returns the authentication mechanism used to create the account associated with this SSO.

Returns:String

an authentication mechanism

Annotations
@Override
getSessionback to summary
public Session getSession(SessionManager manager)

Implements io.undertow.security.impl.SingleSignOn.getSession.

Doc from io.undertow.security.impl.SingleSignOn.getSession.

Returns the session associated with the deployment of the specified session manager

Parameters
manager:SessionManager

a session manager

Returns:Session

a session

Annotations
@Override
iteratorback to summary
public Iterator<Session> iterator()

Implements java.lang.Iterable.iterator.

Doc from java.lang.Iterable.iterator.

Returns an iterator over elements of type T.

Returns:Iterator<Session>

an Iterator.

Annotations
@Override
removeback to summary
public void remove(Session session)

Implements io.undertow.security.impl.SingleSignOn.remove.

Doc from io.undertow.security.impl.SingleSignOn.remove.

Removes the specified session from the set of sessions to which the user is authenticated

Parameters
session:Session

a session manager

Annotations
@Override