edu.internet2.middleware.shibboleth.idp.session.impl
Class SessionImpl

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.session.impl.AbstractSession
      extended by edu.internet2.middleware.shibboleth.idp.session.impl.SessionImpl
All Implemented Interfaces:
edu.internet2.middleware.shibboleth.common.session.Session, Serializable

public class SessionImpl
extends edu.internet2.middleware.shibboleth.common.session.impl.AbstractSession
implements Session

Session information for user logged into the IdP.

See Also:
Serialized Form

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

SessionImpl

public SessionImpl(String sessionId,
                   byte[] secret,
                   long timeout)
Constructor.

Parameters:
sessionId - ID of the session
secret - a secret to associate with the session
timeout - inactivity timeout for the session in milliseconds
Method Detail

getSessionSecret

public byte[] getSessionSecret()
A secret associated with this session.

Returns:
secret associated with this session

getAuthenticationMethods

public Map<String,AuthenticationMethodInformation> getAuthenticationMethods()
Gets the methods by which the user has authenticated to the IdP.

Returns:
methods by which the user has authenticated to the IdP

getServicesInformation

public Map<String,ServiceInformation> getServicesInformation()
Gets the services the user has logged in to.

Returns:
services the user has logged in to

getServiceInformation

public ServiceInformation getServiceInformation(String entityId)
Gets the service information for the given entity ID.

Parameters:
entityId - entity ID to retrieve the service information for
Returns:
the service information or null

getPrincipalName

public String getPrincipalName()
This method will return the first, in an unordered list of principal names registered with the 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.

Specified by:
getPrincipalName in interface edu.internet2.middleware.shibboleth.common.session.Session
Overrides:
getPrincipalName in class edu.internet2.middleware.shibboleth.common.session.impl.AbstractSession


Copyright © 2006-2011 Internet2. All Rights Reserved.