Public Member Functions | |
StoredSession (SSCache *cache, DDF &obj) | |
xmltooling::Lockable * | lock () |
void | unlock () |
const char * | getID () const |
Returns the session key. | |
const char * | getApplicationID () const |
Returns the session's application ID. | |
const char * | getClientAddress () const |
Returns the address of the client associated with the session. | |
const char * | getClientAddress (const char *family) const |
void | setClientAddress (const char *client_addr) |
const char * | getEntityID () const |
Returns the entityID of the IdP that initiated the session. | |
const char * | getProtocol () const |
Returns the protocol family used to initiate the session. | |
const char * | getAuthnInstant () const |
Returns the UTC timestamp on the authentication event at the IdP. | |
const opensaml::saml2::NameID * | getNameID () const |
Returns the NameID associated with a session. | |
const char * | getSessionIndex () const |
Returns the SessionIndex provided with the session. | |
const char * | getAuthnContextClassRef () const |
Returns a URI containing an AuthnContextClassRef provided with the session. | |
const char * | getAuthnContextDeclRef () const |
Returns a URI containing an AuthnContextDeclRef provided with the session. | |
const std::vector< Attribute * > & | getAttributes () const |
Returns the resolved attributes associated with the session. | |
const std::multimap < std::string, const Attribute * > & | getIndexedAttributes () const |
Returns the resolved attributes associated with the session, indexed by ID. | |
const std::vector< const char * > & | getAssertionIDs () const |
Returns the identifiers of the assertion(s) cached by the session. | |
void | validate (const Application &application, const char *client_addr, time_t *timeout) |
void | addAttributes (const std::vector< Attribute * > &attributes) |
Adds additional attributes to the session. | |
const opensaml::Assertion * | getAssertion (const char *id) const |
Returns an assertion cached by the session. | |
void | addAssertion (opensaml::Assertion *assertion) |
Stores an assertion in the session. | |
time_t | getExpiration () const |
Returns the session expiration. | |
time_t | getLastAccess () const |
Returns the last access time of the session. | |
Static Public Member Functions | |
static const char * | getAddressFamily (const char *addr) |
void shibsp::StoredSession::addAssertion | ( | opensaml::Assertion * | assertion | ) | [virtual] |
Stores an assertion in the session.
assertion | pointer to an assertion to cache (will be freed by cache) |
Implements shibsp::Session.
void shibsp::StoredSession::addAttributes | ( | const std::vector< Attribute * > & | attributes | ) | [virtual] |
Adds additional attributes to the session.
attributes | reference to an array of Attributes to cache (will be freed by cache) |
Implements shibsp::Session.
const char* shibsp::StoredSession::getApplicationID | ( | ) | const [inline, virtual] |
Returns the session's application ID.
Implements shibsp::Session.
const opensaml::Assertion* shibsp::StoredSession::getAssertion | ( | const char * | id | ) | const [virtual] |
Returns an assertion cached by the session.
id | identifier of the assertion to retrieve |
Implements shibsp::Session.
const std::vector<const char*>& shibsp::StoredSession::getAssertionIDs | ( | ) | const [virtual] |
Returns the identifiers of the assertion(s) cached by the session.
The SSO assertion is guaranteed to be first in the set.
Implements shibsp::Session.
const std::vector<Attribute*>& shibsp::StoredSession::getAttributes | ( | ) | const [inline, virtual] |
Returns the resolved attributes associated with the session.
Implements shibsp::Session.
const char* shibsp::StoredSession::getAuthnContextClassRef | ( | ) | const [inline, virtual] |
Returns a URI containing an AuthnContextClassRef provided with the session.
SAML 1.x AuthenticationMethods will be returned as class references.
Implements shibsp::Session.
const char* shibsp::StoredSession::getAuthnContextDeclRef | ( | ) | const [inline, virtual] |
Returns a URI containing an AuthnContextDeclRef provided with the session.
Implements shibsp::Session.
const char* shibsp::StoredSession::getAuthnInstant | ( | ) | const [inline, virtual] |
Returns the UTC timestamp on the authentication event at the IdP.
Implements shibsp::Session.
const char* shibsp::StoredSession::getClientAddress | ( | ) | const [inline, virtual] |
Returns the address of the client associated with the session.
Implements shibsp::Session.
const char* shibsp::StoredSession::getEntityID | ( | ) | const [inline, virtual] |
Returns the entityID of the IdP that initiated the session.
Implements shibsp::Session.
time_t shibsp::StoredSession::getExpiration | ( | ) | const [inline, virtual] |
Returns the session expiration.
Implements shibsp::Session.
const char* shibsp::StoredSession::getID | ( | ) | const [inline, virtual] |
const std::multimap<std::string, const Attribute*>& shibsp::StoredSession::getIndexedAttributes | ( | ) | const [virtual] |
Returns the resolved attributes associated with the session, indexed by ID.
Implements shibsp::Session.
time_t shibsp::StoredSession::getLastAccess | ( | ) | const [inline, virtual] |
Returns the last access time of the session.
Implements shibsp::Session.
const opensaml::saml2::NameID* shibsp::StoredSession::getNameID | ( | ) | const [inline, virtual] |
Returns the NameID associated with a session.
SAML 1.x identifiers will be promoted to the 2.0 type.
Implements shibsp::Session.
const char* shibsp::StoredSession::getProtocol | ( | ) | const [inline, virtual] |
Returns the protocol family used to initiate the session.
Implements shibsp::Session.
const char* shibsp::StoredSession::getSessionIndex | ( | ) | const [inline, virtual] |
Returns the SessionIndex provided with the session.
Implements shibsp::Session.