shibboleth-3.0.1
|
Encapsulates access to a user's security session. More...
#include <shibsp/SessionCache.h>
Public Member Functions | |
virtual const char * | getID () const =0 |
Returns the session key. More... | |
virtual const char * | getApplicationID () const =0 |
Returns the session's application ID. More... | |
virtual time_t | getExpiration () const =0 |
Returns the session expiration. More... | |
virtual time_t | getLastAccess () const =0 |
Returns the last access time of the session. More... | |
virtual const char * | getClientAddress () const =0 |
Returns the address of the client associated with the session. More... | |
virtual const char * | getEntityID () const =0 |
Returns the entityID of the IdP that initiated the session. More... | |
virtual const char * | getProtocol () const =0 |
Returns the protocol family used to initiate the session. More... | |
virtual const char * | getAuthnInstant () const =0 |
Returns the UTC timestamp on the authentication event at the IdP. More... | |
virtual const opensaml::saml2::NameID * | getNameID () const =0 |
Returns the NameID associated with a session. More... | |
virtual const char * | getSessionIndex () const =0 |
Returns the SessionIndex provided with the session. More... | |
virtual const char * | getAuthnContextClassRef () const =0 |
Returns a URI containing an AuthnContextClassRef provided with the session. More... | |
virtual const char * | getAuthnContextDeclRef () const =0 |
Returns a URI containing an AuthnContextDeclRef provided with the session. More... | |
virtual const std::vector < Attribute * > & | getAttributes () const =0 |
Returns the resolved attributes associated with the session. More... | |
virtual const std::multimap < std::string, const Attribute * > & | getIndexedAttributes () const =0 |
Returns the resolved attributes associated with the session, indexed by ID. More... | |
virtual const std::vector < const char * > & | getAssertionIDs () const =0 |
Returns the identifiers of the assertion(s) cached by the session. More... | |
virtual void | addAttributes (const std::vector< Attribute * > &attributes)=0 |
Adds additional attributes to the session. More... | |
virtual const opensaml::Assertion * | getAssertion (const char *id) const =0 |
Returns an assertion cached by the session. More... | |
virtual void | addAssertion (opensaml::Assertion *assertion)=0 |
Stores an assertion in the session. More... | |
Encapsulates access to a user's security 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.
|
pure virtual |
Stores an assertion in the session.
assertion | pointer to an assertion to cache (will be freed by cache) |
Implemented in shibsp::StoredSession.
|
pure virtual |
Adds additional attributes to the session.
attributes | reference to an array of Attributes to cache (will be freed by cache) |
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the session's application ID.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns an assertion cached by the session.
id | identifier of the assertion to retrieve |
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the identifiers of the assertion(s) cached by the session.
The SSO assertion is guaranteed to be first in the set.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the resolved attributes associated with the session.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns a URI containing an AuthnContextClassRef provided with the session.
SAML 1.x AuthenticationMethods will be returned as class references.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns a URI containing an AuthnContextDeclRef provided with the session.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the UTC timestamp on the authentication event at the IdP.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the address of the client associated with the session.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the entityID of the IdP that initiated the session.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the session expiration.
Implemented in shibsp::StoredSession.
|
pure virtual |
|
pure virtual |
Returns the resolved attributes associated with the session, indexed by ID.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the last access time of the session.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the NameID associated with a session.
SAML 1.x identifiers will be promoted to the 2.0 type.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the protocol family used to initiate the session.
Implemented in shibsp::StoredSession.
|
pure virtual |
Returns the SessionIndex provided with the session.
Implemented in shibsp::StoredSession.