X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2FSessionCache.h;h=870ca7532c6672c18ecd0e4e3514d225ee68cc29;hb=f5d5edeafe98f6322238730ff34ef86dc5220e04;hp=341c224f1a8b57695669156d691b9eb5596f2a7d;hpb=35f74892a217013b69cf9c69a5d7fbc38be75802;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/SessionCache.h b/shibsp/SessionCache.h index 341c224..870ca75 100644 --- a/shibsp/SessionCache.h +++ b/shibsp/SessionCache.h @@ -24,8 +24,11 @@ #define __shibsp_sessioncache_h__ #include -#include -#include + +#ifndef SHIBSP_LITE +# include +# include +#endif #include namespace shibsp { @@ -61,6 +64,7 @@ namespace shibsp { */ virtual const char* getAuthnInstant() const=0; +#ifndef SHIBSP_LITE /** * Returns the NameID associated with a session. * @@ -69,6 +73,7 @@ namespace shibsp { * @return a SAML 2.0 NameID associated with the session, if any */ virtual const opensaml::saml2::NameID* getNameID() const=0; +#endif /** * Returns the SessionIndex provided with the session. @@ -101,13 +106,6 @@ namespace shibsp { virtual const std::multimap& getAttributes() const=0; /** - * Adds additional attributes to the session. - * - * @param attributes reference to an array of Attributes to cache (will be freed by cache) - */ - virtual void addAttributes(const std::vector& attributes)=0; - - /** * Returns the identifiers of the assertion(s) cached by the session. * *

The SSO assertion is guaranteed to be first in the set. @@ -116,6 +114,14 @@ namespace shibsp { */ virtual const std::vector& getAssertionIDs() const=0; +#ifndef SHIBSP_LITE + /** + * Adds additional attributes to the session. + * + * @param attributes reference to an array of Attributes to cache (will be freed by cache) + */ + virtual void addAttributes(const std::vector& attributes)=0; + /** * Returns an assertion cached by the session. * @@ -130,6 +136,7 @@ namespace shibsp { * @param assertion pointer to an assertion to cache (will be freed by cache) */ virtual void addAssertion(opensaml::Assertion* assertion)=0; +#endif }; /** @@ -165,6 +172,7 @@ namespace shibsp { public: virtual ~SessionCache() {} +#ifndef SHIBSP_LITE /** * Inserts a new session into the cache. * @@ -197,6 +205,7 @@ namespace shibsp { const std::vector* tokens=NULL, const std::multimap* attributes=NULL )=0; +#endif /** * Locates an existing session. @@ -222,11 +231,13 @@ namespace shibsp { virtual void remove(const char* key, const Application& application, const char* client_addr)=0; }; - /** SessionCache implementation that delegates to a remoted version. */ - #define REMOTED_SESSION_CACHE "Remoted" - +#ifndef SHIBSP_LITE /** SessionCache implementation backed by a StorageService. */ #define STORAGESERVICE_SESSION_CACHE "StorageService" +#endif + + /** SessionCache implementation for lite builds that delegates to a remoted version. */ + #define REMOTED_SESSION_CACHE "Remoted" /** * Registers SessionCache classes into the runtime.