public class SessionImpl extends AbstractSession implements Session
HTTP_SESSION_BINDING_ATTRIBUTE
コンストラクタと説明 |
---|
SessionImpl(String sessionId,
byte[] secret,
long timeout)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
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, setSubject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInactivityTimeout, getLastActivityInstant, getSessionID, getSubject, setLastActivityInstant, setSubject
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.
A convenience method that gets the first principal retrieved from the Subject
.getPrincipalName
インタフェース内 Session
getPrincipalName
クラス内 AbstractSession
Copyright © 2012. All Rights Reserved.