org.sourceid.saml20.service
Class Session

java.lang.Object
  extended by org.sourceid.saml20.service.Session
All Implemented Interfaces:
java.io.Serializable

public class Session
extends java.lang.Object
implements java.io.Serializable

An object that contains info about a SAML assertion/session. Depending on the context it can be an assertion received (if you are acting as an SP) or an assertion issued (if you are acting as an IdP). This object wraps the info needed to track sessions that have been issued or received to or from partners in order to do SLO.

Author:
Brian Campbell
See Also:
Serialized Form

Constructor Summary
Session(java.lang.String entityId, java.lang.String assertionId, java.lang.String sessionIndex, org.sourceid.saml20.xmlbinding.assertion.NameIDType nameId)
          Creates a new Session with the given parameters.
 
Method Summary
 java.lang.String getAssertionId()
          Gets the assertion id of the assertion that was used to establish the session.
 java.lang.String getEntityId()
          Gets the entity id of the partner to who the assertion was issued or from who the assertion was received.
 org.sourceid.saml20.xmlbinding.assertion.NameIDType getNameId()
          Gets the the name id chunk of xml from the assertion that was used to establish the session.
 java.lang.String getSessionIndex()
          Gets the session index of the assertion that was used to establish the session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Session

public Session(java.lang.String entityId,
               java.lang.String assertionId,
               java.lang.String sessionIndex,
               org.sourceid.saml20.xmlbinding.assertion.NameIDType nameId)
Creates a new Session with the given parameters.

Parameters:
entityId - the entity id of the partner.
assertionId - the unique identifier of the assertion that was issued or received.
sessionIndex - the session index on the assertion.
nameId - the name id chunk of xml from the assertion.
Method Detail

getEntityId

public java.lang.String getEntityId()
Gets the entity id of the partner to who the assertion was issued or from who the assertion was received.

Returns:
the entity id of the partner..

getAssertionId

public java.lang.String getAssertionId()
Gets the assertion id of the assertion that was used to establish the session.

Returns:
the assertion id.

getSessionIndex

public java.lang.String getSessionIndex()
Gets the session index of the assertion that was used to establish the session.

Returns:
the session index.

getNameId

public org.sourceid.saml20.xmlbinding.assertion.NameIDType getNameId()
Gets the the name id chunk of xml from the assertion that was used to establish the session.

Returns:
name id chunk of xml.


Copyright 2007 Ping Identity Corp. All rights reserved.