1 martin 1.37 //%LICENSE////////////////////////////////////////////////////////////////
|
2 martin 1.38 //
|
3 martin 1.37 // Licensed to The Open Group (TOG) under one or more contributor license
4 // agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
5 // this work for additional information regarding copyright ownership.
6 // Each contributor licenses this file to you under the OpenPegasus Open
7 // Source License; you may not use this file except in compliance with the
8 // License.
|
9 martin 1.38 //
|
10 martin 1.37 // Permission is hereby granted, free of charge, to any person obtaining a
11 // copy of this software and associated documentation files (the "Software"),
12 // to deal in the Software without restriction, including without limitation
13 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
14 // and/or sell copies of the Software, and to permit persons to whom the
15 // Software is furnished to do so, subject to the following conditions:
|
16 martin 1.38 //
|
17 martin 1.37 // The above copyright notice and this permission notice shall be included
18 // in all copies or substantial portions of the Software.
|
19 martin 1.38 //
|
20 martin 1.37 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
21 martin 1.38 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
22 martin 1.37 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
27 martin 1.38 //
|
28 martin 1.37 //////////////////////////////////////////////////////////////////////////
|
29 mike 1.2 //
30 //%/////////////////////////////////////////////////////////////////////////////
31
32
33 //////////////////////////////////////////////////////////////////////////////
|
34 david.dillard 1.27 //
|
35 mike 1.2 // This file defines the security property owner class.
36 //
37 //////////////////////////////////////////////////////////////////////////////
38
39 #ifndef Pegasus_SecurityPropertyOwner_h
40 #define Pegasus_SecurityPropertyOwner_h
41
42 #include <Pegasus/Config/ConfigPropertyOwner.h>
|
43 a.arora 1.21 #include <Pegasus/Common/AutoPtr.h>
|
44 mike 1.2
45
46 PEGASUS_NAMESPACE_BEGIN
47
48 ///////////////////////////////////////////////////////////////////
49 // SecurityPropertyOwner Class
50 ///////////////////////////////////////////////////////////////////
51
|
52 david.dillard 1.27 /**
|
53 mike 1.2 This is Log property owner class that extends ConfigPropertyOwner
54 class and provide implementation.
55 */
56 class PEGASUS_CONFIG_LINKAGE SecurityPropertyOwner : public ConfigPropertyOwner
57 {
58 public:
59
|
60 kumpf 1.32 /** Constructor */
|
61 mike 1.2 SecurityPropertyOwner();
62
63 /**
|
64 kumpf 1.32 Initialize the config properties.
|
65 mike 1.2
|
66 kumpf 1.32 This method is expected to be called only once at the start of the
67 CIMOM. It initializes the properties with the default values.
|
68 mike 1.2 */
69 void initialize();
70
|
71 david.dillard 1.27 /**
|
72 kumpf 1.32 Get information about the specified property.
|
73 mike 1.2
|
74 kumpf 1.36 @param name The name of the property.
|
75 kumpf 1.32 @param propertyInfo List to store the property info.
76 @exception UnrecognizedConfigProperty if the property is not defined.
|
77 mike 1.2 */
|
78 kumpf 1.32 void getPropertyInfo(
79 const String& name,
80 Array<String>& propertyInfo) const;
|
81 mike 1.2
|
82 david.dillard 1.27 /**
|
83 kumpf 1.32 Get default value of the specified property.
|
84 mike 1.2
|
85 kumpf 1.32 @param name The name of the property.
86 @return string containing the default value of the property specified.
87 @exception UnrecognizedConfigProperty if the property is not defined.
|
88 mike 1.2 */
|
89 kumpf 1.32 String getDefaultValue(const String& name) const;
|
90 mike 1.2
|
91 david.dillard 1.27 /**
|
92 kumpf 1.32 Get current value of the specified property.
|
93 mike 1.2
|
94 kumpf 1.32 @param name The name of the property.
95 @return string containing the current value of the property specified.
96 @exception UnrecognizedConfigProperty if the property is not defined.
|
97 mike 1.2 */
|
98 kumpf 1.32 String getCurrentValue(const String& name) const;
|
99 mike 1.2
|
100 david.dillard 1.27 /**
|
101 kumpf 1.32 Get planned value of the specified property.
|
102 mike 1.2
|
103 kumpf 1.32 @param name The name of the property.
104 @return string containing the planned value of the property specified.
105 @exception UnrecognizedConfigProperty if the property is not defined.
|
106 mike 1.2 */
|
107 kumpf 1.32 String getPlannedValue(const String& name) const;
|
108 mike 1.2
|
109 david.dillard 1.27 /**
|
110 kumpf 1.32 Init current value of the specified property to the specified value.
111 This method is expected to be called only once at the start of the
112 CIMOM. The property value will be initialized irrespective of whether
113 the property is dynamic or not.
|
114 mike 1.2
|
115 kumpf 1.32 @param name The name of the property.
116 @param value The current value of the property.
117 @exception UnrecognizedConfigProperty if the property is not defined.
118 @exception InvalidPropertyValue if the property value is not valid.
|
119 mike 1.2 */
120 void initCurrentValue(const String& name, const String& value);
121
|
122 david.dillard 1.27 /**
|
123 kumpf 1.32 Init planned value of the specified property to the specified value.
124 This method is expected to be called only once at the start of the
125 CIMOM. The property value will be initialized irrespective of whether
126 the property is dynamic or not.
127
128 @param name The name of the property.
129 @param value The planned value of the property.
130 @exception UnrecognizedConfigProperty if the property is not defined.
131 @exception InvalidPropertyValue if the property value is not valid.
|
132 mike 1.2 */
|
133 david.dillard 1.27 void initPlannedValue(const String& name, const String& value);
|
134 mike 1.2
|
135 david.dillard 1.27 /**
|
136 kumpf 1.32 Update current value of the specified property to the specified value.
137 The property value will be updated only if the property is dynamically
138 updatable.
139
140 @param name The name of the property.
141 @param value The current value of the property.
142 @exception NonDynamicConfigProperty if the property is not dynamic.
143 @exception InvalidPropertyValue if the property value is not valid.
144 @exception UnrecognizedConfigProperty if the property is not defined.
|
145 mike 1.2 */
146 void updateCurrentValue(const String& name, const String& value);
147 //throw (NonDynamicConfigProperty, InvalidPropertyValue,
148 // UnrecognizedConfigProperty);
149
|
150 david.dillard 1.27 /**
|
151 kumpf 1.32 Update planned value of the specified property to the specified value.
|
152 mike 1.2
|
153 kumpf 1.32 @param name The name of the property.
154 @param value The planned value of the property.
155 @exception UnrecognizedConfigProperty if the property is not defined.
156 @exception InvalidPropertyValue if the property value is not valid.
|
157 mike 1.2 */
158 void updatePlannedValue(const String& name, const String& value);
159
|
160 david.dillard 1.27 /**
|
161 kumpf 1.32 Checks to see if the given value is valid or not.
|
162 mike 1.2
|
163 kumpf 1.32 @param name The name of the property.
164 @param value The value of the property to be validated.
165 @return Boolean True if the specified value for the property is valid.
166 @exception UnrecognizedConfigProperty if the property is not defined.
|
167 mike 1.2 */
|
168 kumpf 1.32 Boolean isValid(const String& name, const String& value) const;
|
169 mike 1.2
|
170 david.dillard 1.27 /**
|
171 kumpf 1.32 Checks to see if the specified property is dynamic or not.
|
172 mike 1.2
|
173 kumpf 1.32 @param name The name of the property.
174 @return Boolean True if the specified property is dynamic.
175 @exception UnrecognizedConfigProperty if the property is not defined.
|
176 mike 1.2 */
|
177 kumpf 1.32 Boolean isDynamic(const String& name) const;
|
178 mike 1.2
179 private:
180
|
181 aruran.ms 1.29 struct ConfigProperty* _lookupConfigProperty(const String& name) const;
|
182 kumpf 1.5
|
183 mike 1.2 /**
|
184 kumpf 1.32 The security properties owned by this class
|
185 mike 1.2 */
|
186 kumpf 1.32 AutoPtr<struct ConfigProperty> _enableAuthentication;
187 AutoPtr<struct ConfigProperty> _enableNamespaceAuthorization;
188 AutoPtr<struct ConfigProperty> _httpAuthType;
189 AutoPtr<struct ConfigProperty> _passwordFilePath;
190 AutoPtr<struct ConfigProperty> _enableRemotePrivilegedUserAccess;
191 AutoPtr<struct ConfigProperty> _certificateFilePath;
192 AutoPtr<struct ConfigProperty> _keyFilePath;
193 AutoPtr<struct ConfigProperty> _trustStore;
194 AutoPtr<struct ConfigProperty> _crlStore;
195 AutoPtr<struct ConfigProperty> _sslClientVerificationMode;
196 AutoPtr<struct ConfigProperty> _sslTrustStoreUserName;
197 AutoPtr<struct ConfigProperty> _enableSubscriptionsForNonprivilegedUsers;
|
198 kumpf 1.15
|
199 kumpf 1.20 #ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
200 kumpf 1.32 AutoPtr<struct ConfigProperty> _authorizedUserGroups;
|
201 kumpf 1.20 #endif
202
|
203 gerarda 1.14 #ifdef PEGASUS_KERBEROS_AUTHENTICATION
|
204 kumpf 1.32 AutoPtr<struct ConfigProperty> _kerberosServiceName;
|
205 gerarda 1.14 #endif
|
206 thilo.boehm 1.35
207 #ifdef PEGASUS_OS_ZOS
208 AutoPtr<struct ConfigProperty> _enableCFZAPPLID;
209 #endif
210
|
211 mike 1.2 };
212
213 PEGASUS_NAMESPACE_END
214
215 #endif /* Pegasus_SecurityPropertyOwner_h */
|