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/resolver/ResolutionContext.h
20 * A context for a resolution request.
23 #ifndef __shibsp_resctx_h__
24 #define __shibsp_resctx_h__
26 #include <shibsp/base.h>
28 #include <saml/Assertion.h>
32 class SHIBSP_API Application;
33 class SHIBSP_API Session;
34 class SHIBSP_API Attribute;
37 * A context for a resolution request.
39 class SHIBSP_API ResolutionContext
41 MAKE_NONCOPYABLE(ResolutionContext);
43 ResolutionContext() {}
45 virtual ~ResolutionContext() {}
48 * Returns the set of Attributes resolved and added to the context.
50 * <p>Any Attributes left in the returned container will be freed by the
51 * context, so the caller should modify/clear the container after copying
52 * objects for its own use.
54 * @return a mutable array of Attributes.
56 virtual std::multimap<std::string,Attribute*>& getResolvedAttributes()=0;
59 * Returns the set of assertions resolved and added to the context.
61 * <p>Any assertions left in the returned container will be freed by the
62 * context, so the caller should modify/clear the container after copying
63 * objects for its own use.
65 * @return a mutable array of Assertions
67 virtual std::vector<opensaml::Assertion*>& getResolvedAssertions()=0;
71 #endif /* __shibsp_resctx_h__ */