X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fsignature%2FSignatureProfileValidator.h;h=0a592e06568fa5010f8efabda749bc8012d9f5d0;hb=5697d9abd4e6d149bbc6153acde26c3f0a5d4859;hp=e4899cf2fd0ae09bde380b09e32358b8cb1ed4a7;hpb=c2e1672d873d6fbdfb199e60bcaff6cae4fcf978;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/signature/SignatureProfileValidator.h b/saml/signature/SignatureProfileValidator.h index e4899cf..0a592e0 100644 --- a/saml/signature/SignatureProfileValidator.h +++ b/saml/signature/SignatureProfileValidator.h @@ -1,50 +1,56 @@ -/* - * Copyright 2001-2006 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file saml/signature/SignatureProfileValidator.h - * - * SAML-specific signature profile validator - */ - -#ifndef __saml_sigval_h__ -#define __saml_sigval_h__ - -#include -#include -#include - -namespace opensaml { - - /** - * SAML-specific signature profile validator. - */ - class SAML_API SignatureProfileValidator : public virtual xmltooling::Validator - { - public: - SignatureProfileValidator() {} - virtual ~SignatureProfileValidator() {} - - void validate(const xmltooling::XMLObject* xmlObject) const; - - SignatureProfileValidator* clone() const { - return new SignatureProfileValidator(); - } - }; - -}; - -#endif /* __saml_sigval_h__ */ +/* + * Copyright 2001-2009 Internet2 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * @file saml/signature/SignatureProfileValidator.h + * + * SAML-specific signature profile validator. + */ + +#ifndef __saml_sigval_h__ +#define __saml_sigval_h__ + +#include +#include + +namespace xmlsignature { + class XMLTOOL_API Signature; +}; + +namespace opensaml { + + /** + * SAML-specific signature profile validator. + */ + class SAML_API SignatureProfileValidator : public virtual xmltooling::Validator + { + public: + SignatureProfileValidator() {} + virtual ~SignatureProfileValidator() {} + + void validate(const xmltooling::XMLObject* xmlObject) const; + + /** + * Type-safe validation method. + * + * @param signature Signature to validate + */ + void validateSignature(const xmlsignature::Signature& signature) const; + }; + +}; + +#endif /* __saml_sigval_h__ */