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