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:
Session, Serializable

public class SessionImpl
extends AbstractSession
implements Session

Session information for user logged into the IdP.

See Also:
Serialized Form

Field Summary
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.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial version UID.

See Also:
Constant Field Values

sessionSecret

private byte[] sessionSecret
Secret key associated with the session.


authnMethods

private Map<String,AuthenticationMethodInformation> authnMethods
The list of methods used to authenticate the user.


servicesInformation

private Map<String,ServiceInformation> servicesInformation
The list of services to which the user has logged in.

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 Session
Overrides:
getPrincipalName in class AbstractSession


Copyright © 1999-2012. All Rights Reserved.