X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fresolver.git;a=blobdiff_plain;f=shibresolver%2Fresolver.h;h=f9c1febf5f61470f8ca1670315a5ff0df73ef875;hp=610ea46ee98f0ac269f72b6d9a180069fb22bac1;hb=HEAD;hpb=c8a04029bd704fc787bf953a0c99fd1c0b371e7c diff --git a/shibresolver/resolver.h b/shibresolver/resolver.h index 610ea46..f9c1feb 100644 --- a/shibresolver/resolver.h +++ b/shibresolver/resolver.h @@ -35,16 +35,9 @@ namespace xmltooling { class XMLTOOL_API XMLObject; }; -#ifndef SHIBSP_LITE -namespace opensaml { - namespace saml2 { - class SAML_API Assertion; - }; -}; -#endif - namespace shibsp { class SHIBSP_API Attribute; + class SHIBSP_API SPRequest; }; namespace shibresolver { @@ -66,12 +59,12 @@ namespace shibresolver { virtual ~ShibbolethResolver(); /** - * Sets the calling service URI, making the Shibboleth SP responsible for + * Sets the calling service request, making the Shibboleth SP responsible for * mapping the service to an Application instance. * - * @param uri identifies the service performing attribute resolution + * @param request identifies the service request performing attribute resolution */ - void setServiceURI(const char* uri); + void setRequest(const shibsp::SPRequest* request); /** * Sets the application ID to use for resolution, bypassing the mapping @@ -89,23 +82,16 @@ namespace shibresolver { void setIssuer(const char* issuer); /** - * Adds a SAML token as input to the resolver. + * Adds an XML token as input to the resolver, generally a SAML assertion. *
The caller retains ownership of the object. * * @param token an input token to evaluate */ - void addToken( -#ifdef SHIBSP_LITE - const xmltooling::XMLObject* token -#else - const opensaml::saml2::Assertion* token -#endif - ); + void addToken(const xmltooling::XMLObject* token); /** * Adds an Attribute as input to the resolver. - *
The caller retains ownership of the object, but it MAY be modified - * during the resolution process. + *
The caller retains ownership of the object.
*
* @param attr an input Attribute
*/
@@ -125,7 +111,7 @@ namespace shibresolver {
*
* @return array of resolved Attributes
*/
- std::vector