(file) Return to SecurityPropertyOwner.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Config

  1 mike  1.2 //%/////////////////////////////////////////////////////////////////////////////
  2           //
  3           // Copyright (c) 2000, 2001 BMC Software, Hewlett-Packard Company, IBM,
  4           // 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           //
 13           // 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 mike  1.2 //==============================================================================
 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 mike  1.2 //
 29           //%/////////////////////////////////////////////////////////////////////////////
 30           
 31           
 32           //////////////////////////////////////////////////////////////////////////////
 33           // 
 34           // This file defines the security property owner class.
 35           //
 36           //////////////////////////////////////////////////////////////////////////////
 37           
 38           #ifndef Pegasus_SecurityPropertyOwner_h
 39           #define Pegasus_SecurityPropertyOwner_h
 40           
 41           #include <Pegasus/Config/ConfigPropertyOwner.h>
 42           
 43           
 44           PEGASUS_NAMESPACE_BEGIN
 45           
 46           ///////////////////////////////////////////////////////////////////
 47           //  SecurityPropertyOwner Class
 48           ///////////////////////////////////////////////////////////////////
 49 mike  1.2 
 50           /** 
 51               This is Log property owner class that extends ConfigPropertyOwner
 52               class and provide implementation.
 53           */
 54           class PEGASUS_CONFIG_LINKAGE SecurityPropertyOwner : public ConfigPropertyOwner
 55           {
 56           public:
 57           
 58               /** Constructors  */
 59               SecurityPropertyOwner();
 60           
 61           
 62               /** Destructor  */
 63               ~SecurityPropertyOwner();
 64           
 65               /**
 66               Initialize the config properties.
 67           
 68               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           
 74               /** 
 75               Get information about the specified property.
 76           
 77               @param propertyName   The name of the property.
 78               @param propertyInfo   List to store the property info.
 79               @exception UnrecognizedConfigProperty  if the property is not defined.
 80               */
 81               void getPropertyInfo(const String& name, Array<String>& propertyInfo);
 82                   //throw (UnrecognizedConfigProperty);
 83           
 84           
 85               /** 
 86               Get default value of the specified property.
 87           
 88               @param  name         The name of the property.
 89               @return string containing the default value of the property specified.
 90               @exception UnrecognizedConfigProperty  if the property is not defined.
 91 mike  1.2     */
 92               const String getDefaultValue(const String& name);
 93                   //throw (UnrecognizedConfigProperty);
 94           
 95           
 96               /** 
 97               Get current value of the specified property.
 98           
 99               @param  name         The name of the property.
100               @return string containing the currnet value of the property specified.
101               @exception UnrecognizedConfigProperty  if the property is not defined.
102               */
103               const String getCurrentValue(const String& name);
104                   //throw (UnrecognizedConfigProperty);
105           
106           
107               /** 
108               Get planned value of the specified property.
109           
110               @param  name         The name of the property.
111               @return string containing the planned value of the property specified.
112 mike  1.2     @exception UnrecognizedConfigProperty  if the property is not defined.
113               */
114               const String getPlannedValue(const String& name);
115                   //throw (UnrecognizedConfigProperty);
116           
117           
118               /** 
119               Init current value of the specified property to the specified value.
120               This method is expected to be called only once at the start of the
121               CIMOM. The property value will be initialized irrespective of whether
122               the property is dynamic or not.
123           
124               @param  name         The name of the property.
125               @param  value        The current value of the property. 
126               @exception     UnrecognizedConfigProperty  if the property is not defined.
127               @exception     InvalidPropertyValue  if the property value is not valid.
128               */
129               void initCurrentValue(const String& name, const String& value);
130                   //throw (UnrecognizedConfigProperty, InvalidPropertyValue);
131           
132           
133 mike  1.2     /** 
134               Init planned value of the specified property to the specified value.
135               This method is expected to be called only once at the start of the
136               CIMOM. The property value will be initialized irrespective of whether
137               the property is dynamic or not.
138           
139               @param  name         The name of the property.
140               @param  value        The planned value of the property. 
141               @exception     UnrecognizedConfigProperty  if the property is not defined.
142               @exception     InvalidPropertyValue  if the property value is not valid.
143               */
144               void initPlannedValue(const String& name, const String& value); 
145                   //throw (UnrecognizedConfigProperty, InvalidPropertyValue);
146           
147           
148               /** 
149               Update current value of the specified property to the specified value.
150               The property value will be updated only if the property is dynamically
151               updatable.
152           
153               @param  name         The name of the property.
154 mike  1.2     @param  value        The current value of the property. 
155               @exception     NonDynamicConfigProperty  if the property is not dynamic.
156               @exception     InvalidPropertyValue  if the property value is not valid.
157               @exception     UnrecognizedConfigProperty  if the property is not defined.
158               */
159               void updateCurrentValue(const String& name, const String& value);
160                   //throw (NonDynamicConfigProperty, InvalidPropertyValue,
161                   //    UnrecognizedConfigProperty);
162           
163           
164               /** 
165               Update planned value of the specified property to the specified value.
166           
167               @param  name         The name of the property.
168               @param  value        The planned value of the property. 
169               @exception     InvalidPropertyValue  if the property value is not valid.
170               @exception     UnrecognizedConfigProperty  if the property is not defined.
171               */
172               void updatePlannedValue(const String& name, const String& value);
173                   //throw (InvalidPropertyValue, UnrecognizedConfigProperty);
174           
175 mike  1.2 
176               /** 
177               Checks to see if the given value is valid or not.
178           
179               @param  name         The name of the property.
180               @param  value        The value of the property to be validated. 
181               @return Boolean      True if the specified value for the property is valid.
182               @exception UnrecognizedConfigProperty  if the property is not defined.
183               */
184               Boolean isValid(const String& name, const String& value);
185                   //throw (UnrecognizedConfigProperty);
186           
187           
188               /** 
189               Checks to see if the specified property is dynamic or not.
190           
191               @param  name         The name of the property.
192               @return Boolean      True if the specified property is dynamic.
193               @exception UnrecognizedConfigProperty  if the property is not defined.
194               */
195               Boolean isDynamic(const String& name);
196 mike  1.2         //throw (UnrecognizedConfigProperty);
197           
198           
199           private:
200           
201 kumpf 1.5     struct ConfigProperty* _lookupConfigProperty(const String& name);
202           
203 mike  1.2     /**
204               The security properties owned by this class
205               */
206               struct ConfigProperty*      _requireAuthentication;
207           
208               struct ConfigProperty*      _requireAuthorization;
209           
210               struct ConfigProperty*      _httpAuthType;
211           
212 kumpf 1.3     struct ConfigProperty*      _passwordFilePath;
213 kumpf 1.4 
214               struct ConfigProperty*      _enableRemotePrivilegedUserAccess;
215 kumpf 1.3 
216 mike  1.2 };
217           
218           PEGASUS_NAMESPACE_END
219           
220           #endif /* Pegasus_SecurityPropertyOwner_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2