X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2FSimpleSigningRule.h;h=b8a42a4c8daea8061cfd4df089cdfdfcbef99edb;hb=632fdee22ac4b756eaa3158217b9acd6c831e7be;hp=bceac070b0d3be95fce2f6d43ea072cb84a0bdee;hpb=750aa26530f9e8993eae37cd9e68e25497be66b5;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/SimpleSigningRule.h b/saml/binding/SimpleSigningRule.h index bceac07..b8a42a4 100644 --- a/saml/binding/SimpleSigningRule.h +++ b/saml/binding/SimpleSigningRule.h @@ -27,9 +27,6 @@ namespace opensaml { /** * Blob-oriented signature checking SecurityPolicyRule for * bindings that support non-XML signature techniques. - * - * Subclasses can provide support for additional message types - * by overriding the issuer derivation method. */ class SAML_API SimpleSigningRule : public SecurityPolicyRule { @@ -37,27 +34,7 @@ namespace opensaml { SimpleSigningRule(const DOMElement* e) {} virtual ~SimpleSigningRule() {} - std::pair evaluate( - const xmltooling::XMLObject& message, - const GenericRequest* request, - const saml2md::MetadataProvider* metadataProvider, - const xmltooling::QName* role, - const xmltooling::TrustEngine* trustEngine - ) const; - - protected: - /** - * Examines the message and/or its contents and extracts the issuer's claimed - * identity along with a protocol identifier. The two together can be used to - * locate metadata to use in validating the signature. Conventions may be needed - * to properly encode non-SAML2 issuer information into a compatible form. - * - *

The caller is responsible for freeing the Issuer object. - * - * @param message message to examine - * @return a pair consisting of a SAML 2.0 Issuer object and a protocol constant. - */ - virtual std::pair getIssuerAndProtocol(const xmltooling::XMLObject& message) const; + bool evaluate(const xmltooling::XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const; }; };