--- /dev/null
+/*\r
+ * Copyright 2001-2006 Internet2\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+/**\r
+ * @file VerifyingContext.h\r
+ * \r
+ * SAML-specific signature verification \r
+ */\r
+\r
+#ifndef __saml_verctx_h__\r
+#define __saml_verctx_h__\r
+\r
+#include <saml/base.h>\r
+#include <xmltooling/signature/VerifyingContext.h>\r
+\r
+namespace opensaml {\r
+\r
+ /**\r
+ * Singleton object that manages library startup/shutdown.configuration.\r
+ */\r
+ class SAML_API VerifyingContext : public virtual xmlsignature::VerifyingContext\r
+ {\r
+ public:\r
+ /**\r
+ * Constructor.\r
+ * \r
+ * @param id identifier of object being verified\r
+ */\r
+ VerifyingContext(const XMLCh* id) : m_id(id) {}\r
+ \r
+ virtual ~VerifyingContext() {}\r
+\r
+ /**\r
+ * Given a native signature, asks the context to verify the signature\r
+ * in accordance with the relying party's requirements.\r
+ * \r
+ * @param sig native signature object\r
+ * \r
+ * @throws SignatureException raised if signature is invalid\r
+ */\r
+ virtual void verifySignature(DSIGSignature* sig) const;\r
+ \r
+ protected:\r
+ /** Identifier of object to verify. */\r
+ const XMLCh* m_id;\r
+ };\r
+\r
+};\r
+\r
+#endif /* __saml_verctx_h__ */\r