X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fbinding%2FHTTPRequest.h;h=177aa56c19b4baf1fc4862694b3b23f4482262b6;hp=5f17c1d805dde54600825587962c11cca113b646;hb=9e8c8ba21f28fe4a5ed0fb8573588523ca3c0a0d;hpb=d9e450a645610a72e1db2feb65a41f028cd5c870 diff --git a/saml/binding/HTTPRequest.h b/saml/binding/HTTPRequest.h index 5f17c1d..177aa56 100644 --- a/saml/binding/HTTPRequest.h +++ b/saml/binding/HTTPRequest.h @@ -42,7 +42,11 @@ namespace opensaml { HTTPRequest() {} public: virtual ~HTTPRequest() {} - + + bool isSecure() const { + return strcmp(getScheme(),"https")==0; + } + /** * Returns the HTTP method of the request (GET, POST, etc.) *