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

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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2