Update copyright.
[shibboleth/sp.git] / shibsp / ServiceProvider.h
index bebe351..cd4d3e1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2006 Internet2
+ *  Copyright 2001-2007 Internet2
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -25,6 +25,7 @@
 
 #include <shibsp/util/PropertySet.h>
 #include <xmltooling/signature/CredentialResolver.h>
+#include <xmltooling/util/StorageService.h>
 
 namespace shibsp {
 
@@ -34,6 +35,7 @@ namespace shibsp {
     class SHIBSP_API SessionCache;
     class SHIBSP_API SPRequest;
     class SHIBSP_API TemplateParameters;
+    class SHIBSP_API TransactionLog;
 
     /**
      * Interface to a Shibboleth ServiceProvider instance.
@@ -57,7 +59,22 @@ namespace shibsp {
          * from the SPConfig singleton.
          */
         virtual void init()=0;
-        
+
+        /**
+         * Returns a TransactionLog instance.
+         * 
+         * @return  a TransactionLog instance
+         */
+        virtual TransactionLog* getTransactionLog() const=0;
+
+        /**
+         * Returns a StorageService instance based on an ID.
+         * 
+         * @param id    a NULL-terminated key identifying the StorageService to the configuration 
+         * @return  a StorageService if available, or NULL
+         */
+        virtual xmltooling::StorageService* getStorageService(const char* id) const=0;
+
         /**
          * Returns a SessionCache instance.
          *