2 * Copyright 2001-2007 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/FilteringContext.h
20 * Context for attribute filtering operations.
23 #ifndef __shibsp_filtctx_h__
24 #define __shibsp_filtctx_h__
26 #include <shibsp/base.h>
28 #include <saml/saml2/metadata/Metadata.h>
32 class SHIBSP_API Application;
33 class SHIBSP_API Attribute;
36 * Context for attribute filtering operations.
38 class SHIBSP_API FilteringContext
40 MAKE_NONCOPYABLE(FilteringContext);
44 virtual ~FilteringContext() {}
47 * Gets the Application doing the filtering.
49 * @return reference to an Application
51 virtual const Application& getApplication() const=0;
54 * Gets the ID of the requester of the attributes, if known.
56 * @return requester of the attributes, or NULL
58 virtual const XMLCh* getAttributeRequester() const=0;
61 * Gets the ID of the issuer of the attributes, if known.
63 * @return ID of the issuer of the attributes, or NULL
65 virtual const XMLCh* getAttributeIssuer() const=0;
68 * Gets the SAML metadata for the attribute requesting role, if available.
70 * @return SAML metadata for the attribute requesting role, or NULL
72 virtual const opensaml::saml2md::RoleDescriptor* getAttributeRequesterMetadata() const=0;
75 * Gets the SAML metadata for the attribute issuing role, if available.
77 * @return SAML metadata for the attribute issuing role, or NULL
79 virtual const opensaml::saml2md::RoleDescriptor* getAttributeIssuerMetadata() const=0;
83 #endif /* __shibsp_filtctx_h__ */