X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=shibsp%2FApplication.h;h=2b38de03724ba3957859b22d33a3aecec2695565;hb=f5d5edeafe98f6322238730ff34ef86dc5220e04;hp=28e970ca674373fcc6503191962470c6216cc2a8;hpb=35f74892a217013b69cf9c69a5d7fbc38be75802;p=shibboleth%2Fcpp-sp.git diff --git a/shibsp/Application.h b/shibsp/Application.h index 28e970c..2b38de0 100644 --- a/shibsp/Application.h +++ b/shibsp/Application.h @@ -24,15 +24,21 @@ #define __shibsp_app_h__ #include -#include -#include -#include + +#include +#ifndef SHIBSP_LITE +# include +# include +# include +#endif namespace shibsp { +#ifndef SHIBSP_LITE class SHIBSP_API AttributeExtractor; class SHIBSP_API AttributeFilter; class SHIBSP_API AttributeResolver; +#endif class SHIBSP_API Handler; class SHIBSP_API ServiceProvider; class SHIBSP_API SessionInitiator; @@ -68,7 +74,7 @@ namespace shibsp { /** * Returns a unique hash for the Application. * - * @return a value resulting from a hash of the Application's ID + * @return a value resulting from a computation over the Application's configuration */ virtual const char* getHash() const=0; @@ -80,6 +86,7 @@ namespace shibsp { */ virtual std::pair getCookieNameProps(const char* prefix) const; +#ifndef SHIBSP_LITE /** * Returns a MetadataProvider for use with this Application. * @@ -117,14 +124,6 @@ namespace shibsp { */ virtual AttributeResolver* getAttributeResolver() const=0; - /** - * Returns a set of attribute IDs to use as a REMOTE_USER value. - *

The first attribute with a value (and only a single value) will be used. - * - * @return a set of attribute IDs, or an empty set - */ - virtual const std::set& getRemoteUserAttributeIds() const=0; - /** * Returns the CredentialResolver instance associated with this Application. * @@ -141,6 +140,22 @@ namespace shibsp { virtual const PropertySet* getRelyingParty(const opensaml::saml2md::EntityDescriptor* provider) const=0; /** + * Returns the set of audience values associated with this Application. + * + * @return set of audience values associated with the Application + */ + virtual const std::vector& getAudiences() const=0; +#endif + + /** + * Returns a set of attribute IDs to use as a REMOTE_USER value. + *

The first attribute with a value (and only a single value) will be used. + * + * @return a set of attribute IDs, or an empty set + */ + virtual const std::set& getRemoteUserAttributeIds() const=0; + + /** * Returns the default SessionInitiator when automatically requesting a session. * * @return the default SessionInitiator, or NULL @@ -189,13 +204,6 @@ namespace shibsp { * @return the mapped Handler, or NULL */ virtual const Handler* getHandler(const char* path) const=0; - - /** - * Returns the set of audience values associated with this Application. - * - * @return set of audience values associated with the Application - */ - virtual const std::vector& getAudiences() const=0; }; };