#include <OW_AuthorizerManager.hpp>
Inheritance diagram for OW_NAMESPACE::AuthorizerManager:
Public Member Functions | |
AuthorizerManager () | |
AuthorizerManager (const Authorizer2IFCRef &authorizerRef) | |
~AuthorizerManager () | |
virtual String | getName () const |
Every service may have a name. | |
void | setAuthorizer (const Authorizer2IFCRef &authorizerRef) |
void | turnOff (OperationContext &context) |
void | turnOn (OperationContext &context) |
bool | isOn (OperationContext &context) |
bool | allowReadInstance (const ServiceEnvironmentIFCRef &env, const String &ns, const String &className, const StringArray *clientPropertyList, StringArray &authorizedPropertyList, OperationContext &context) |
Determine if a read of the given instance is allowed. | |
bool | allowWriteInstance (const ServiceEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &op, Authorizer2IFC::EDynamicFlag dynamic, Authorizer2IFC::EWriteFlag flag, OperationContext &context) |
Determine if a write of the given instance is allowed. | |
bool | allowReadSchema (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context) |
Determine if a read of the schema is allow for the given namespace. | |
bool | allowWriteSchema (const ServiceEnvironmentIFCRef &env, const String &ns, Authorizer2IFC::EWriteFlag flag, OperationContext &context) |
Determine if a write of a schema element is allowed. | |
bool | allowAccessToNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, Authorizer2IFC::EAccessType accessType, OperationContext &context) |
Determine if the user is allowed access to a namespace. | |
bool | allowCreateNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context) |
Determine if user is allowed to create the given namespace. | |
bool | allowDeleteNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context) |
Determine if the user is allowed to delete the given namespace. | |
bool | allowEnumNameSpace (const ServiceEnvironmentIFCRef &env, OperationContext &context) |
Determine if the user is allowed to enumerate namespaces. | |
bool | allowMethodInvocation (const ServiceEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &path, const String &methodName, OperationContext &context) |
Determine if a method may be invoked. | |
virtual void | init (const ServiceEnvironmentIFCRef &env) |
Called by the CIMOMEnvironment after the CIMServer has be loaded and initialized. | |
virtual void | shutdown () |
The service must shutdown completely before returning from this function. | |
Private Attributes | |
Authorizer2IFCRef | m_authorizer |
bool | m_initialized |
Definition at line 46 of file OW_AuthorizerManager.hpp.
|
Definition at line 157 of file OW_AuthorizerManager.cpp. |
|
Definition at line 164 of file OW_AuthorizerManager.cpp. |
|
Definition at line 169 of file OW_AuthorizerManager.cpp. |
|
Determine if the user is allowed access to a namespace.
Definition at line 300 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if user is allowed to create the given namespace.
Definition at line 324 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if the user is allowed to delete the given namespace.
Definition at line 346 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if the user is allowed to enumerate namespaces.
Definition at line 369 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, and m_initialized. |
|
Determine if a method may be invoked.
Definition at line 391 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if a read of the given instance is allowed. The given objectPath could be a class path or an instance path.
Definition at line 199 of file OW_AuthorizerManager.cpp. References authorizedPropertyList, className, clientPropertyList, context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if a read of the schema is allow for the given namespace.
Definition at line 253 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if a write of the given instance is allowed.
Definition at line 226 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Determine if a write of a schema element is allowed.
Definition at line 276 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::createAuthEnvRef(), env, isOn(), m_authorizer, m_initialized, and ns. |
|
Every service may have a name. The name is used to calculate dependencies, other services can return the name from getDependencies(), to instruct the cimom about which order to start and shutdown all the services. The default is to have no name, in that case, no other service can depend on it. Reimplemented from OW_NAMESPACE::ServiceIFC. Definition at line 175 of file OW_AuthorizerManager.cpp. References OW_NAMESPACE::ServiceIFCNames::AuthorizerManager. |
|
Called by the CIMOMEnvironment after the CIMServer has be loaded and initialized.
Implements OW_NAMESPACE::ServiceIFC. Definition at line 182 of file OW_AuthorizerManager.cpp. References OW_NAMESPACE::createAuthEnvRef(), env, m_authorizer, and m_initialized. |
|
Definition at line 151 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::DISABLED_KEY, and OW_NAMESPACE::OperationContext::getStringDataWithDefault(). Referenced by allowAccessToNameSpace(), allowCreateNameSpace(), allowDeleteNameSpace(), allowEnumNameSpace(), allowMethodInvocation(), allowReadInstance(), allowReadSchema(), allowWriteInstance(), and allowWriteSchema(). |
|
Definition at line 57 of file OW_AuthorizerManager.hpp. |
|
The service must shutdown completely before returning from this function. All copies of the service environment or objects obtained from it should be set to 0 to avoid circular reference counts. Implements OW_NAMESPACE::ServiceIFC. Definition at line 417 of file OW_AuthorizerManager.cpp. References m_authorizer, and OW_NAMESPACE::SharedLibraryReference< T >::setNull(). |
|
Definition at line 129 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::DISABLED_KEY, and OW_NAMESPACE::OperationContext::setStringData(). |
|
Definition at line 137 of file OW_AuthorizerManager.cpp. References context, OW_NAMESPACE::DISABLED_KEY, and OW_NAMESPACE::OperationContext::removeData(). |
|
Definition at line 214 of file OW_AuthorizerManager.hpp. Referenced by allowAccessToNameSpace(), allowCreateNameSpace(), allowDeleteNameSpace(), allowEnumNameSpace(), allowMethodInvocation(), allowReadInstance(), allowReadSchema(), allowWriteInstance(), allowWriteSchema(), init(), and shutdown(). |
|
Definition at line 215 of file OW_AuthorizerManager.hpp. Referenced by allowAccessToNameSpace(), allowCreateNameSpace(), allowDeleteNameSpace(), allowEnumNameSpace(), allowMethodInvocation(), allowReadInstance(), allowReadSchema(), allowWriteInstance(), allowWriteSchema(), and init(). |