#include <shibsp/SessionCache.h>
Public Member Functions | |
virtual const char * | getID () const =0 |
Returns the session key. | |
virtual const char * | getApplicationID () const =0 |
Returns the session's application ID. | |
virtual time_t | getExpiration () const =0 |
Returns the session expiration. | |
virtual time_t | getLastAccess () const =0 |
Returns the last access time of the session. | |
virtual const char * | getClientAddress () const =0 |
Returns the address of the client associated with the session. | |
virtual const char * | getEntityID () const =0 |
Returns the entityID of the IdP that initiated the session. | |
virtual const char * | getProtocol () const =0 |
Returns the protocol family used to initiate the session. | |
virtual const char * | getAuthnInstant () const =0 |
Returns the UTC timestamp on the authentication event at the IdP. | |
virtual const opensaml::saml2::NameID * | getNameID () const =0 |
Returns the NameID associated with a session. | |
virtual const char * | getSessionIndex () const =0 |
Returns the SessionIndex provided with the session. | |
virtual const char * | getAuthnContextClassRef () const =0 |
Returns a URI containing an AuthnContextClassRef provided with the session. | |
virtual const char * | getAuthnContextDeclRef () const =0 |
Returns a URI containing an AuthnContextDeclRef provided with the session. | |
virtual const std::vector < Attribute * > & | getAttributes () const =0 |
Returns the resolved attributes associated with the session. | |
virtual const std::multimap < std::string, const Attribute * > & | getIndexedAttributes () const =0 |
Returns the resolved attributes associated with the session, indexed by ID. | |
virtual const std::vector < const char * > & | getAssertionIDs () const =0 |
Returns the identifiers of the assertion(s) cached by the session. | |
virtual void | addAttributes (const std::vector< Attribute * > &attributes)=0 |
Adds additional attributes to the session. | |
virtual const opensaml::Assertion * | getAssertion (const char *id) const =0 |
Returns an assertion cached by the session. | |
virtual void | addAssertion (opensaml::Assertion *assertion)=0 |
Stores an assertion in the session. |
The SessionCache does not itself require locking to manage concurrency, but access to each Session is generally exclusive or at least controlled, and the caller must unlock a Session to dispose of it.
virtual const char* shibsp::Session::getID | ( | ) | const [pure virtual] |
Returns the session key.
virtual const char* shibsp::Session::getApplicationID | ( | ) | const [pure virtual] |
Returns the session's application ID.
virtual time_t shibsp::Session::getExpiration | ( | ) | const [pure virtual] |
Returns the session expiration.
virtual time_t shibsp::Session::getLastAccess | ( | ) | const [pure virtual] |
Returns the last access time of the session.
virtual const char* shibsp::Session::getClientAddress | ( | ) | const [pure virtual] |
Returns the address of the client associated with the session.
virtual const char* shibsp::Session::getEntityID | ( | ) | const [pure virtual] |
Returns the entityID of the IdP that initiated the session.
virtual const char* shibsp::Session::getProtocol | ( | ) | const [pure virtual] |
Returns the protocol family used to initiate the session.
virtual const char* shibsp::Session::getAuthnInstant | ( | ) | const [pure virtual] |
Returns the UTC timestamp on the authentication event at the IdP.
virtual const opensaml::saml2::NameID* shibsp::Session::getNameID | ( | ) | const [pure virtual] |
Returns the NameID associated with a session.
SAML 1.x identifiers will be promoted to the 2.0 type.
virtual const char* shibsp::Session::getSessionIndex | ( | ) | const [pure virtual] |
Returns the SessionIndex provided with the session.
virtual const char* shibsp::Session::getAuthnContextClassRef | ( | ) | const [pure virtual] |
Returns a URI containing an AuthnContextClassRef provided with the session.
SAML 1.x AuthenticationMethods will be returned as class references.
virtual const char* shibsp::Session::getAuthnContextDeclRef | ( | ) | const [pure virtual] |
Returns a URI containing an AuthnContextDeclRef provided with the session.
virtual const std::vector<Attribute*>& shibsp::Session::getAttributes | ( | ) | const [pure virtual] |
Returns the resolved attributes associated with the session.
virtual const std::multimap<std::string,const Attribute*>& shibsp::Session::getIndexedAttributes | ( | ) | const [pure virtual] |
Returns the resolved attributes associated with the session, indexed by ID.
virtual const std::vector<const char*>& shibsp::Session::getAssertionIDs | ( | ) | const [pure virtual] |
Returns the identifiers of the assertion(s) cached by the session.
The SSO assertion is guaranteed to be first in the set.
virtual void shibsp::Session::addAttributes | ( | const std::vector< Attribute * > & | attributes | ) | [pure virtual] |
Adds additional attributes to the session.
attributes | reference to an array of Attributes to cache (will be freed by cache) |
virtual const opensaml::Assertion* shibsp::Session::getAssertion | ( | const char * | id | ) | const [pure virtual] |
Returns an assertion cached by the session.
id | identifier of the assertion to retrieve |
virtual void shibsp::Session::addAssertion | ( | opensaml::Assertion * | assertion | ) | [pure virtual] |
Stores an assertion in the session.
assertion | pointer to an assertion to cache (will be freed by cache) |