public class SessionImpl extends AbstractSession implements Session
| Modifier and Type | Field and Description |
|---|---|
private Map<String,AuthenticationMethodInformation> |
authnMethods
The list of methods used to authenticate the user.
|
private static long |
serialVersionUID
Serial version UID.
|
private Map<String,ServiceInformation> |
servicesInformation
The list of services to which the user has logged in.
|
private byte[] |
sessionSecret
Secret key associated with the session.
|
HTTP_SESSION_BINDING_ATTRIBUTE| Constructor and Description |
|---|
SessionImpl(String sessionId,
byte[] secret,
long timeout)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,AuthenticationMethodInformation> |
getAuthenticationMethods()
Gets the methods by which the user has authenticated to the IdP.
|
String |
getPrincipalName()
This method will return the first, in an unordered list of principal names registered with the
Subject of
the session. |
ServiceInformation |
getServiceInformation(String entityId)
Gets the service information for the given entity ID.
|
Map<String,ServiceInformation> |
getServicesInformation()
Gets the services the user has logged in to.
|
byte[] |
getSessionSecret()
A secret associated with this session.
|
getInactivityTimeout, getLastActivityInstant, getSessionID, getSubject, setLastActivityInstant, setSubjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInactivityTimeout, getLastActivityInstant, getSessionID, getSubject, setLastActivityInstant, setSubjectprivate static final long serialVersionUID
private byte[] sessionSecret
private Map<String,AuthenticationMethodInformation> authnMethods
private Map<String,ServiceInformation> servicesInformation
public SessionImpl(String sessionId, byte[] secret, long timeout)
sessionId - ID of the sessionsecret - a secret to associate with the sessiontimeout - inactivity timeout for the session in millisecondspublic byte[] getSessionSecret()
public Map<String,AuthenticationMethodInformation> getAuthenticationMethods()
public Map<String,ServiceInformation> getServicesInformation()
public ServiceInformation getServiceInformation(String entityId)
entityId - entity ID to retrieve the service information forpublic String getPrincipalName()
Subject of
the session. If one or more UsernamePrincipal principals is registered with the subject the returned
value will be the string form of one of those.
getPrincipalName in interface SessiongetPrincipalName in class AbstractSessionCopyright © 1999-2014. All Rights Reserved.