public class SingleSignOnEntry extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
authType |
protected String |
id |
protected long |
lastAccessTime |
protected Principal |
principal
Reset by HASingleSignOnEntry
|
protected String |
realmName |
protected Map<String,Session> |
sessions |
protected String |
username |
protected AtomicLong |
version |
| Constructor and Description |
|---|
SingleSignOnEntry(String id,
long ver,
Principal principal,
String authType,
String username,
String realmName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addSession(SingleSignOn sso,
Session session)
Adds the given session to this SingleSignOnEntry if it does not
already exist.
|
void |
expireSessions()
Expires all sessions associated with this SingleSignOnEntry
|
String |
getAuthType()
Gets the name of the authentication type originally used to authenticate
the user associated with the SSO.
|
String |
getId()
Gets the id of this SSO entry.
|
long |
getLastAccessTime() |
Principal |
getPrincipal()
Gets the
Principal that has been authenticated by
the SSO. |
String |
getRealmName() |
String |
getUsername()
Gets the username provided by the user as part of the authentication
process.
|
long |
getVersion()
Gets the id version of this SSO entry
|
long |
incrementAndGetVersion() |
boolean |
isEmpty()
Returns true if this SingleSignOnEntry does not have any sessions
associated with it, and false otherwise.
|
void |
removeSession(Session session) |
void |
setLastAccessTime(long lastAccessTime) |
protected final String id
protected final String authType
protected Principal principal
protected final String username
protected final String realmName
protected long lastAccessTime
protected final AtomicLong version
public boolean addSession(SingleSignOn sso, Session session)
public void removeSession(Session session)
public boolean isEmpty()
public void expireSessions()
public String getId()
public long getVersion()
public String getAuthType()
public Principal getPrincipal()
Principal that has been authenticated by
the SSO.public String getUsername()
public String getRealmName()
public long getLastAccessTime()
public void setLastAccessTime(long lastAccessTime)
public long incrementAndGetVersion()
Copyright © 2017. All rights reserved.