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

  1 martin 1.37 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.38 //
  3 martin 1.37 // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9 martin 1.38 //
 10 martin 1.37 // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16 martin 1.38 //
 17 martin 1.37 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.38 //
 20 martin 1.37 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.38 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.37 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.38 //
 28 martin 1.37 //////////////////////////////////////////////////////////////////////////
 29 mike   1.2  //
 30             //%/////////////////////////////////////////////////////////////////////////////
 31             
 32             
 33             //////////////////////////////////////////////////////////////////////////////
 34 david.dillard 1.27 //
 35 mike          1.2  // This file defines the security property owner class.
 36                    //
 37                    //////////////////////////////////////////////////////////////////////////////
 38                    
 39                    #ifndef Pegasus_SecurityPropertyOwner_h
 40                    #define Pegasus_SecurityPropertyOwner_h
 41                    
 42                    #include <Pegasus/Config/ConfigPropertyOwner.h>
 43 a.arora       1.21 #include <Pegasus/Common/AutoPtr.h>
 44 mike          1.2  
 45                    
 46                    PEGASUS_NAMESPACE_BEGIN
 47                    
 48                    ///////////////////////////////////////////////////////////////////
 49                    //  SecurityPropertyOwner Class
 50                    ///////////////////////////////////////////////////////////////////
 51                    
 52 david.dillard 1.27 /**
 53 mike          1.2      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 kumpf         1.32     /** Constructor */
 61 mike          1.2      SecurityPropertyOwner();
 62                    
 63                        /**
 64 kumpf         1.32         Initialize the config properties.
 65 mike          1.2  
 66 kumpf         1.32         This method is expected to be called only once at the start of the
 67                            CIMOM. It initializes the properties with the default values.
 68 mike          1.2      */
 69                        void initialize();
 70                    
 71 david.dillard 1.27     /**
 72 kumpf         1.32         Get information about the specified property.
 73 mike          1.2  
 74 kumpf         1.36         @param name   The name of the property.
 75 kumpf         1.32         @param propertyInfo   List to store the property info.
 76                            @exception UnrecognizedConfigProperty  if the property is not defined.
 77 mike          1.2      */
 78 kumpf         1.32     void getPropertyInfo(
 79                            const String& name,
 80                            Array<String>& propertyInfo) const;
 81 mike          1.2  
 82 david.dillard 1.27     /**
 83 kumpf         1.32         Get default value of the specified property.
 84 mike          1.2  
 85 kumpf         1.32         @param  name         The name of the property.
 86                            @return string containing the default value of the property specified.
 87                            @exception UnrecognizedConfigProperty  if the property is not defined.
 88 mike          1.2      */
 89 kumpf         1.32     String getDefaultValue(const String& name) const;
 90 mike          1.2  
 91 david.dillard 1.27     /**
 92 kumpf         1.32         Get current value of the specified property.
 93 mike          1.2  
 94 kumpf         1.32         @param  name         The name of the property.
 95                            @return string containing the current value of the property specified.
 96                            @exception UnrecognizedConfigProperty  if the property is not defined.
 97 mike          1.2      */
 98 kumpf         1.32     String getCurrentValue(const String& name) const;
 99 mike          1.2  
100 david.dillard 1.27     /**
101 kumpf         1.32         Get planned value of the specified property.
102 mike          1.2  
103 kumpf         1.32         @param  name         The name of the property.
104                            @return string containing the planned value of the property specified.
105                            @exception UnrecognizedConfigProperty  if the property is not defined.
106 mike          1.2      */
107 kumpf         1.32     String getPlannedValue(const String& name) const;
108 mike          1.2  
109 david.dillard 1.27     /**
110 kumpf         1.32         Init current value of the specified property to the specified value.
111                            This method is expected to be called only once at the start of the
112                            CIMOM. The property value will be initialized irrespective of whether
113                            the property is dynamic or not.
114 mike          1.2  
115 kumpf         1.32         @param name The name of the property.
116                            @param value The current value of the property.
117                            @exception UnrecognizedConfigProperty if the property is not defined.
118                            @exception InvalidPropertyValue if the property value is not valid.
119 mike          1.2      */
120                        void initCurrentValue(const String& name, const String& value);
121                    
122 david.dillard 1.27     /**
123 kumpf         1.32         Init planned 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 planned value of the property.
130                            @exception UnrecognizedConfigProperty if the property is not defined.
131                            @exception InvalidPropertyValue if the property value is not valid.
132 mike          1.2      */
133 david.dillard 1.27     void initPlannedValue(const String& name, const String& value);
134 mike          1.2  
135 david.dillard 1.27     /**
136 kumpf         1.32         Update current value of the specified property to the specified value.
137                            The property value will be updated only if the property is dynamically
138                            updatable.
139                    
140                            @param name The name of the property.
141                            @param value The current value of the property.
142 venkat.puvvada 1.39         @param  userName User requesting the update.
143 venkat.puvvada 1.40         @param timeoutSeconds Timeout in seconds to complete the update.
144 kumpf          1.32         @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 venkat.puvvada 1.39     void updateCurrentValue(
149                             const String& name,
150                             const String& value,
151 venkat.puvvada 1.40         const String& userName,
152                             Uint32 timeoutSeconds);
153 mike           1.2          //throw (NonDynamicConfigProperty, InvalidPropertyValue,
154                             //    UnrecognizedConfigProperty);
155                     
156 david.dillard  1.27     /**
157 kumpf          1.32         Update planned value of the specified property to the specified value.
158 mike           1.2  
159 kumpf          1.32         @param name The name of the property.
160                             @param value The planned value of the property.
161                             @exception UnrecognizedConfigProperty if the property is not defined.
162                             @exception InvalidPropertyValue if the property value is not valid.
163 mike           1.2      */
164                         void updatePlannedValue(const String& name, const String& value);
165                     
166 david.dillard  1.27     /**
167 kumpf          1.32         Checks to see if the given value is valid or not.
168 mike           1.2  
169 kumpf          1.32         @param name The name of the property.
170                             @param value The value of the property to be validated.
171                             @return Boolean True if the specified value for the property is valid.
172                             @exception UnrecognizedConfigProperty if the property is not defined.
173 mike           1.2      */
174 kumpf          1.32     Boolean isValid(const String& name, const String& value) const;
175 mike           1.2  
176 david.dillard  1.27     /**
177 kumpf          1.32         Checks to see if the specified property is dynamic or not.
178 mike           1.2  
179 kumpf          1.32         @param name The name of the property.
180                             @return Boolean True if the specified property is dynamic.
181                             @exception UnrecognizedConfigProperty if the property is not defined.
182 mike           1.2      */
183 kumpf          1.32     Boolean isDynamic(const String& name) const;
184 mike           1.2  
185                     private:
186                     
187 aruran.ms      1.29     struct ConfigProperty* _lookupConfigProperty(const String& name) const;
188 kumpf          1.5  
189 mike           1.2      /**
190 kumpf          1.32         The security properties owned by this class
191 mike           1.2      */
192 kumpf          1.32     AutoPtr<struct ConfigProperty> _enableAuthentication;
193                         AutoPtr<struct ConfigProperty> _enableNamespaceAuthorization;
194                         AutoPtr<struct ConfigProperty> _httpAuthType;
195                         AutoPtr<struct ConfigProperty> _passwordFilePath;
196                         AutoPtr<struct ConfigProperty> _enableRemotePrivilegedUserAccess;
197                         AutoPtr<struct ConfigProperty> _certificateFilePath;
198                         AutoPtr<struct ConfigProperty> _keyFilePath;
199                         AutoPtr<struct ConfigProperty> _trustStore;
200                         AutoPtr<struct ConfigProperty> _crlStore;
201                         AutoPtr<struct ConfigProperty> _sslClientVerificationMode;
202                         AutoPtr<struct ConfigProperty> _sslTrustStoreUserName;
203                         AutoPtr<struct ConfigProperty> _enableSubscriptionsForNonprivilegedUsers;
204 karl           1.40.6.1     AutoPtr<struct ConfigProperty> _cipherSuite;
205 kumpf          1.15     
206 kumpf          1.20     #ifdef PEGASUS_ENABLE_USERGROUP_AUTHORIZATION
207 kumpf          1.32         AutoPtr<struct ConfigProperty> _authorizedUserGroups;
208 kumpf          1.20     #endif
209                         
210 gerarda        1.14     #ifdef PEGASUS_KERBEROS_AUTHENTICATION
211 kumpf          1.32         AutoPtr<struct ConfigProperty> _kerberosServiceName;
212 gerarda        1.14     #endif
213 thilo.boehm    1.35     
214                         #ifdef PEGASUS_OS_ZOS
215                             AutoPtr<struct ConfigProperty> _enableCFZAPPLID;
216                         #endif
217                         
218 mike           1.2      };
219                         
220                         PEGASUS_NAMESPACE_END
221                         
222                         #endif /* Pegasus_SecurityPropertyOwner_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2