1 karl 1.25 //%2005////////////////////////////////////////////////////////////////////////
|
2 mike 1.2 //
|
3 karl 1.23 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
4 // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
5 // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
|
6 karl 1.16 // IBM Corp.; EMC Corporation, The Open Group.
|
7 karl 1.23 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
8 // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
|
9 karl 1.25 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
10 // EMC Corporation; VERITAS Software Corporation; The Open Group.
|
11 mike 1.2 //
12 // Permission is hereby granted, free of charge, to any person obtaining a copy
13 // of this software and associated documentation files (the "Software"), to
14 // deal in the Software without restriction, including without limitation the
15 // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
16 // sell copies of the Software, and to permit persons to whom the Software is
17 // furnished to do so, subject to the following conditions:
|
18 kumpf 1.8 //
|
19 mike 1.2 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
20 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
21 // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
22 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23 // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
24 // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
25 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 //
28 //==============================================================================
29 //
30 // Author: Nag Boranna, Hewlett-Packard Company (nagaraja_boranna@hp.com)
31 //
|
32 kumpf 1.4 // Modified By: Sushma Fernandes, Hewlett-Packard Company
33 // (sushma_fernandes@hp.com)
|
34 kumpf 1.7 // Bapu Patil, Hewlett-Packard Company (bapu_patil@hp.com)
|
35 kumpf 1.9 // Yi Zhou, Hewlett-Packard Company (yi_zhou@hp.com)
|
36 h.sterling 1.18 // Heather Sterling, IBM (hsterl@us.ibm.com)
|
37 aruran.ms 1.26 // Aruran, IBM (ashanmug@in.ibm.com) for Bug# 3614
|
38 mike 1.2 //
39 //%/////////////////////////////////////////////////////////////////////////////
40
41
42 //////////////////////////////////////////////////////////////////////////////
43 //
44 // This file defines the security property owner class.
45 //
46 //////////////////////////////////////////////////////////////////////////////
47
48 #ifndef Pegasus_SecurityPropertyOwner_h
49 #define Pegasus_SecurityPropertyOwner_h
50
51 #include <Pegasus/Config/ConfigPropertyOwner.h>
|
52 a.arora 1.21 #include <Pegasus/Common/AutoPtr.h>
|
53 mike 1.2
54
55 PEGASUS_NAMESPACE_BEGIN
56
57 ///////////////////////////////////////////////////////////////////
58 // SecurityPropertyOwner Class
59 ///////////////////////////////////////////////////////////////////
60
61 /**
62 This is Log property owner class that extends ConfigPropertyOwner
63 class and provide implementation.
64 */
65 class PEGASUS_CONFIG_LINKAGE SecurityPropertyOwner : public ConfigPropertyOwner
66 {
67 public:
68
69 /** Constructors */
70 SecurityPropertyOwner();
71
72 /**
73 Initialize the config properties.
74 mike 1.2
75 This method is expected to be called only once at the start of the
76 CIMOM. It initializes the properties with the default values.
77 */
78 void initialize();
79
80
81 /**
82 Get information about the specified property.
83
84 @param propertyName The name of the property.
85 @param propertyInfo List to store the property info.
86 @exception UnrecognizedConfigProperty if the property is not defined.
87 */
88 void getPropertyInfo(const String& name, Array<String>& propertyInfo);
89 //throw (UnrecognizedConfigProperty);
90
91
92 /**
93 Get default value of the specified property.
94
95 mike 1.2 @param name The name of the property.
96 @return string containing the default value of the property specified.
97 @exception UnrecognizedConfigProperty if the property is not defined.
98 */
|
99 aruran.ms 1.26 String getDefaultValue(const String& name);
|
100 mike 1.2 //throw (UnrecognizedConfigProperty);
101
102
103 /**
104 Get current value of the specified property.
105
106 @param name The name of the property.
107 @return string containing the currnet value of the property specified.
108 @exception UnrecognizedConfigProperty if the property is not defined.
109 */
|
110 aruran.ms 1.26 String getCurrentValue(const String& name);
|
111 mike 1.2 //throw (UnrecognizedConfigProperty);
112
113
114 /**
115 Get planned value of the specified property.
116
117 @param name The name of the property.
118 @return string containing the planned value of the property specified.
119 @exception UnrecognizedConfigProperty if the property is not defined.
120 */
|
121 aruran.ms 1.26 String getPlannedValue(const String& name);
|
122 mike 1.2 //throw (UnrecognizedConfigProperty);
123
124
125 /**
126 Init current value of the specified property to the specified value.
127 This method is expected to be called only once at the start of the
128 CIMOM. The property value will be initialized irrespective of whether
129 the property is dynamic or not.
130
131 @param name The name of the property.
132 @param value The current value of the property.
133 @exception UnrecognizedConfigProperty if the property is not defined.
134 @exception InvalidPropertyValue if the property value is not valid.
135 */
136 void initCurrentValue(const String& name, const String& value);
137 //throw (UnrecognizedConfigProperty, InvalidPropertyValue);
138
139
140 /**
141 Init planned value of the specified property to the specified value.
142 This method is expected to be called only once at the start of the
143 mike 1.2 CIMOM. The property value will be initialized irrespective of whether
144 the property is dynamic or not.
145
146 @param name The name of the property.
147 @param value The planned value of the property.
148 @exception UnrecognizedConfigProperty if the property is not defined.
149 @exception InvalidPropertyValue if the property value is not valid.
150 */
151 void initPlannedValue(const String& name, const String& value);
152 //throw (UnrecognizedConfigProperty, InvalidPropertyValue);
153
154
155 /**
156 Update current value of the specified property to the specified value.
157 The property value will be updated only if the property is dynamically
158 updatable.
159
160 @param name The name of the property.
161 @param value The current value of the property.
162 @exception NonDynamicConfigProperty if the property is not dynamic.
163 @exception InvalidPropertyValue if the property value is not valid.
164 mike 1.2 @exception UnrecognizedConfigProperty if the property is not defined.
165 */
166 void updateCurrentValue(const String& name, const String& value);
167 //throw (NonDynamicConfigProperty, InvalidPropertyValue,
168 // UnrecognizedConfigProperty);
169
170
171 /**
172 Update planned value of the specified property to the specified value.
173
174 @param name The name of the property.
175 @param value The planned value of the property.
176 @exception InvalidPropertyValue if the property value is not valid.
177 @exception UnrecognizedConfigProperty if the property is not defined.
178 */
179 void updatePlannedValue(const String& name, const String& value);
180 //throw (InvalidPropertyValue, UnrecognizedConfigProperty);
181
182
183 /**
184 Checks to see if the given value is valid or not.
185 mike 1.2
186 @param name The name of the property.
187 @param value The value of the property to be validated.
188 @return Boolean True if the specified value for the property is valid.
189 @exception UnrecognizedConfigProperty if the property is not defined.
190 */
191 Boolean isValid(const String& name, const String& value);
192 //throw (UnrecognizedConfigProperty);
193
194
195 /**
196 Checks to see if the specified property is dynamic or not.
197
198 @param name The name of the property.
199 @return Boolean True if the specified property is dynamic.
200 @exception UnrecognizedConfigProperty if the property is not defined.
201 */
202 Boolean isDynamic(const String& name);
203 //throw (UnrecognizedConfigProperty);
204
205
206 mike 1.2 private:
207
|
208 kumpf 1.5 struct ConfigProperty* _lookupConfigProperty(const String& name);
209
|
210 mike 1.2 /**
211 The security properties owned by this class
212 */
|
213 a.arora 1.21 AutoPtr<struct ConfigProperty> _enableAuthentication; //PEP101
|
214 kumpf 1.9
|
215 a.arora 1.21 AutoPtr<struct ConfigProperty> _enableNamespaceAuthorization; //PEP101
|
216 mike 1.2
|
217 a.arora 1.21 AutoPtr<struct ConfigProperty> _httpAuthType; //PEP101
|
218 mike 1.2
|
219 a.arora 1.21 AutoPtr<struct ConfigProperty> _passwordFilePath; //PEP101
|
220 kumpf 1.4
|
221 a.arora 1.21 AutoPtr<struct ConfigProperty> _enableRemotePrivilegedUserAccess; //PEP101
|
222 kumpf 1.7
|
223 a.arora 1.21 AutoPtr<struct ConfigProperty> _certificateFilePath; //PEP101
|
224 kumpf 1.12
|
225 a.arora 1.21 AutoPtr<struct ConfigProperty> _keyFilePath; //PEP101
|
226 kumpf 1.13
|
227 a.arora 1.21 AutoPtr<struct ConfigProperty> _trustStore; //PEP101
|
228 h.sterling 1.18
|
229 a.arora 1.21 AutoPtr<struct ConfigProperty> _exportSSLTrustStore; //PEP101
|
230 kumpf 1.19
|
231 h.sterling 1.24 AutoPtr<struct ConfigProperty> _crlStore; //PEP101
232
|
233 a.arora 1.21 AutoPtr<struct ConfigProperty> _sslClientVerificationMode; //PEP101
|
234 h.sterling 1.22
235 AutoPtr<struct ConfigProperty> _sslTrustStoreUserName; //PEP101
236
|
237 a.arora 1.21 AutoPtr<struct ConfigProperty> _enableSubscriptionsForNonprivilegedUsers; //PEP101
|
238 kumpf 1.15
|
239 kumpf 1.20 #ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
|
240 a.arora 1.21 AutoPtr<struct ConfigProperty> _authorizedUserGroups; //PEP101
|
241 kumpf 1.20 #endif
242
|
243 a.arora 1.21 AutoPtr<struct ConfigProperty> _enableSSLExportClientVerification; //PEP101
|
244 kumpf 1.19
|
245 gerarda 1.14 #ifdef PEGASUS_KERBEROS_AUTHENTICATION
|
246 a.arora 1.21 AutoPtr<struct ConfigProperty> _kerberosServiceName; //PEP101
|
247 gerarda 1.14 #endif
|
248 mike 1.2 };
249
250 PEGASUS_NAMESPACE_END
251
252 #endif /* Pegasus_SecurityPropertyOwner_h */
|