Imported Upstream version 2.1.dfsg1
[shibboleth/sp.git] / shibsp / Application.h
index 9660e7a..c7352a2 100644 (file)
@@ -114,9 +114,10 @@ namespace shibsp {
          * Returns the name and cookie properties to use for this Application.
          * 
          * @param prefix    a value to prepend to the base cookie name
+         * @param lifetime  if non-null, will be populated with a suggested lifetime for the cookie, or 0 if session-bound
          * @return  a pair containing the cookie name and the string to append to the cookie value
          */
-        virtual std::pair<std::string,const char*> getCookieNameProps(const char* prefix) const;
+        virtual std::pair<std::string,const char*> getCookieNameProps(const char* prefix, time_t* lifetime=NULL) const;
 
 #ifndef SHIBSP_LITE
         /**
@@ -172,6 +173,14 @@ namespace shibsp {
         virtual const PropertySet* getRelyingParty(const opensaml::saml2md::EntityDescriptor* provider) const=0;
 
         /**
+         * Returns configuration properties governing security interactions with a named peer.
+         * 
+         * @param entityID  a peer name
+         * @return  the applicable PropertySet
+         */
+        virtual const PropertySet* getRelyingParty(const XMLCh* entityID) const=0;
+
+        /**
          * Returns any additional audience values associated with this Application.
          * 
          * @return additional audience values associated with the Application, or NULL