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