|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.session.impl.AbstractSession
edu.internet2.middleware.shibboleth.idp.session.impl.SessionImpl
public class SessionImpl
Session information for user logged into the IdP.
Field Summary |
---|
Fields inherited from interface edu.internet2.middleware.shibboleth.idp.session.Session |
---|
HTTP_SESSION_BINDING_ATTRIBUTE |
Constructor Summary | |
---|---|
SessionImpl(String sessionId,
byte[] secret,
long timeout)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.session.impl.AbstractSession |
---|
getInactivityTimeout, getLastActivityInstant, getSessionID, getSubject, setLastActivityInstant, setSubject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.session.Session |
---|
getInactivityTimeout, getLastActivityInstant, getSessionID, getSubject, setLastActivityInstant, setSubject |
Constructor Detail |
---|
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 millisecondsMethod Detail |
---|
public 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 for
public 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 edu.internet2.middleware.shibboleth.common.session.Session
getPrincipalName
in class edu.internet2.middleware.shibboleth.common.session.impl.AbstractSession
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |