2 * Copyright 2001-2009 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file shibsp/attribute/filtering/BasicFilteringContext.h
20 * A trivial FilteringContext implementation.
23 #ifndef __shibsp_basicfiltctx_h__
24 #define __shibsp_basicfiltctx_h__
26 #include <shibsp/attribute/filtering/FilteringContext.h>
30 class SHIBSP_API Attribute;
32 class SHIBSP_API BasicFilteringContext : public FilteringContext
38 * @param app reference to Application
39 * @param attributes attributes being filtered
40 * @param role metadata role of Attribute issuer, if any
41 * @param authncontext_class method/category of authentication event, if known
42 * @param authncontext_decl specifics of authentication event, if known
44 BasicFilteringContext(
45 const Application& app,
46 const std::vector<Attribute*>& attributes,
47 const opensaml::saml2md::RoleDescriptor* role=NULL,
48 const XMLCh* authncontext_class=NULL,
49 const XMLCh* authncontext_decl=NULL
52 virtual ~BasicFilteringContext();
54 // Virtual function overrides.
55 const Application& getApplication() const;
56 const XMLCh* getAuthnContextClassRef() const;
57 const XMLCh* getAuthnContextDeclRef() const;
58 const XMLCh* getAttributeRequester() const;
59 const XMLCh* getAttributeIssuer() const;
60 const opensaml::saml2md::RoleDescriptor* getAttributeRequesterMetadata() const;
61 const opensaml::saml2md::RoleDescriptor* getAttributeIssuerMetadata() const;
62 const std::multimap<std::string,Attribute*>& getAttributes() const;
65 const Application& m_app;
66 std::multimap<std::string,Attribute*> m_attributes;
67 const opensaml::saml2md::RoleDescriptor* m_role;
68 const XMLCh* m_issuer;
74 #endif /* __shibsp_basicfiltctx_h__ */