2 * Licensed to the University Corporation for Advanced Internet
3 * Development, Inc. (UCAID) under one or more contributor license
4 * agreements. See the NOTICE file distributed with this work for
5 * additional information regarding copyright ownership.
7 * UCAID licenses this file to you under the Apache License,
8 * Version 2.0 (the "License"); you may not use this file except
9 * in compliance with the License. You may obtain a copy of the
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
17 * either express or implied. See the License for the specific
18 * language governing permissions and limitations under the License.
22 * @file shibsp/metadata/MetadataProviderCriteria.h
24 * Extended criteria for metadata lookup for Shibboleth-aware metadata providers.
27 #ifndef __shibsp_metaprovcrit_h__
28 #define __shibsp_metaprovcrit_h__
30 #include <shibsp/base.h>
32 #include <saml/saml2/metadata/MetadataProvider.h>
36 class SHIBSP_API Application;
39 * Extended criteria for metadata lookup for Shibboleth-aware metadata providers.
41 struct SHIBSP_API MetadataProviderCriteria : public opensaml::saml2md::MetadataProvider::Criteria
46 * @param app application performing the lookup
48 MetadataProviderCriteria(const Application& app);
53 * @param app application performing the lookup
54 * @param id entityID to lookup
55 * @param q element/type of role, if any
56 * @param prot protocol support constant, if any
57 * @param valid true iff stale metadata should be ignored
59 MetadataProviderCriteria(
60 const Application& app, const XMLCh* id, const xmltooling::QName* q=nullptr, const XMLCh* prot=nullptr, bool valid=true
66 * @param app application performing the lookup
67 * @param id entityID to lookup
68 * @param q element/type of role, if any
69 * @param prot protocol support constant, if any
70 * @param valid true iff stale metadata should be ignored
72 MetadataProviderCriteria(
73 const Application& app, const char* id, const xmltooling::QName* q=nullptr, const XMLCh* prot=nullptr, bool valid=true
79 * @param app application performing the lookup
80 * @param a artifact to lookup
81 * @param q element/type of role, if any
82 * @param prot protocol support constant, if any
83 * @param valid true iff stale metadata should be ignored
85 MetadataProviderCriteria(
86 const Application& app, const opensaml::SAMLArtifact* a, const xmltooling::QName* q=nullptr, const XMLCh* prot=nullptr, bool valid=true
89 ~MetadataProviderCriteria();
91 /** The application performing the lookup. */
92 const Application& application;
96 #endif /* __shibsp_metaprovcrit_h__ */