Merged trust engines back into a unified version, made metadata roles a "KeyInfoSource".
[shibboleth/opensaml2.git] / saml / security / ChainingTrustEngine.h
diff --git a/saml/security/ChainingTrustEngine.h b/saml/security/ChainingTrustEngine.h
deleted file mode 100644 (file)
index b4f9c78..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- *  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/security/ChainingTrustEngine.h
- * 
- * X509TrustEngine that uses multiple engines in sequence.
- */
-
-#ifndef __saml_chaintrust_h__
-#define __saml_chaintrust_h__
-
-#include <saml/security/X509TrustEngine.h>
-
-namespace opensaml {
-
-    /**
-     * X509TrustEngine that uses multiple engines in sequence.
-     */
-    class SAML_API ChainingTrustEngine : public X509TrustEngine {
-    public:
-        /**
-         * Constructor.
-         * 
-         * If a DOM is supplied, the following XML content is supported:
-         * 
-         * <ul>
-         *  <li>&lt;TrustEngine&gt; elements with a type attribute
-         * </ul>
-         * 
-         * XML namespaces are ignored in the processing of this content.
-         * 
-         * @param e DOM to supply configuration for provider
-         */
-        ChainingTrustEngine(const DOMElement* e=NULL);
-        
-        /**
-         * Destructor will delete any embedded engines.
-         */
-        virtual ~ChainingTrustEngine();
-
-        /**
-         * Adds a trust engine for future calls.
-         * 
-         * @param newEngine trust engine to add
-         */
-        void addTrustEngine(X509TrustEngine* newEngine) {
-            m_engines.push_back(newEngine);
-        }
-
-        /**
-         * Removes a trust engine. The caller must delete the engine if necessary.
-         * 
-         * @param oldEngine trust engine to remove
-         * @return  the old engine
-         */
-        X509TrustEngine* removeTrustEngine(X509TrustEngine* oldEngine) {
-            for (std::vector<X509TrustEngine*>::iterator i=m_engines.begin(); i!=m_engines.end(); i++) {
-                if (oldEngine==(*i)) {
-                    m_engines.erase(i);
-                    return oldEngine;
-                }
-            }
-            return NULL;
-        }
-
-        virtual bool validate(
-            xmlsignature::Signature& sig,
-            const saml2md::RoleDescriptor& role,
-            const xmlsignature::KeyResolver* keyResolver=NULL
-            ) const;
-        virtual bool validate(
-            const XMLCh* sigAlgorithm,
-            const char* sig,
-            xmlsignature::KeyInfo* keyInfo,
-            const char* in,
-            unsigned int in_len,
-            const saml2md::RoleDescriptor& role,
-            const xmlsignature::KeyResolver* keyResolver=NULL
-            ) const;
-        virtual bool validate(
-            XSECCryptoX509* certEE,
-            const std::vector<XSECCryptoX509*>& certChain,
-            const saml2md::RoleDescriptor& role,
-            bool checkName=true,
-            const xmlsignature::KeyResolver* keyResolver=NULL
-            ) const;
-
-    private:
-        std::vector<X509TrustEngine*> m_engines;
-    };
-    
-};
-
-#endif /* __saml_chaintrust_h__ */