#define __shibsp_sessioncache_h__
#include <shibsp/base.h>
-#include <saml/saml1/core/Assertions.h>
-#include <saml/saml2/metadata/Metadata.h>
+
+#ifndef SHIBSP_LITE
+# include <saml/saml1/core/Assertions.h>
+# include <saml/saml2/metadata/Metadata.h>
+#endif
#include <xmltooling/Lockable.h>
namespace shibsp {
*/
virtual const char* getAuthnInstant() const=0;
+#ifndef SHIBSP_LITE
/**
* Returns the NameID associated with a session.
*
* @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.
virtual const std::multimap<std::string,Attribute*>& 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<Attribute*>& attributes)=0;
-
- /**
* Returns the identifiers of the assertion(s) cached by the session.
*
* <p>The SSO assertion is guaranteed to be first in the set.
*/
virtual const std::vector<const char*>& 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<Attribute*>& attributes)=0;
+
/**
* Returns an assertion cached by the session.
*
* @param assertion pointer to an assertion to cache (will be freed by cache)
*/
virtual void addAssertion(opensaml::Assertion* assertion)=0;
+#endif
};
/**
public:
virtual ~SessionCache() {}
+#ifndef SHIBSP_LITE
/**
* Inserts a new session into the cache.
*
const std::vector<const opensaml::Assertion*>* tokens=NULL,
const std::multimap<std::string,Attribute*>* attributes=NULL
)=0;
+#endif
/**
* Locates an existing session.
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.