X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=blobdiff_plain;f=shibsp%2Fattribute%2Ffiltering%2Fimpl%2FAuthenticationMethodStringFunctor.cpp;h=27b89aeab89c11a2bf279fd0b59007a5a2d90603;hp=f52843a3fab310ae7547d8e1d054f03fd7ebcf48;hb=a62c416b6ecfc17d89853a8f14604249c94d2f60;hpb=e6311b71b669e8924d6a81baf5c2bb2d98166f42 diff --git a/shibsp/attribute/filtering/impl/AuthenticationMethodStringFunctor.cpp b/shibsp/attribute/filtering/impl/AuthenticationMethodStringFunctor.cpp index f52843a..27b89ae 100644 --- a/shibsp/attribute/filtering/impl/AuthenticationMethodStringFunctor.cpp +++ b/shibsp/attribute/filtering/impl/AuthenticationMethodStringFunctor.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2009 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,8 @@ /** * AuthenticationMethodStringFunctor.cpp * - * Match functor that compares the user's authentication method against a given string. + * Match functor that compares the user's authentication method against + * a given string. */ #include "internal.h" @@ -39,10 +40,10 @@ namespace shibsp { const XMLCh* m_value; bool m_ignoreCase; public: - AuthenticationMethodStringFunctor(const DOMElement* e) : m_value(e ? e->getAttributeNS(NULL,value) : NULL) { + AuthenticationMethodStringFunctor(const DOMElement* e) : m_value(e ? e->getAttributeNS(nullptr,value) : nullptr) { if (!m_value || !*m_value) throw ConfigurationException("AuthenticationMethodString MatchFunctor requires non-empty value attribute."); - const XMLCh* flag = e ? e->getAttributeNS(NULL,ignoreCase) : NULL; + const XMLCh* flag = e ? e->getAttributeNS(nullptr,ignoreCase) : nullptr; m_ignoreCase = (flag && (*flag == chLatin_t || *flag == chDigit_1)); }