#include <OW_SimpleAuthorizer2.hpp>
Inheritance diagram for OW_NAMESPACE::SimpleAuthorizer2:
Public Member Functions | |
SimpleAuthorizer2 () | |
Create a new SimpleAuthorization object. | |
virtual | ~SimpleAuthorizer2 () |
Destroy this SimpleAuthorization object. | |
virtual bool | doAllowReadInstance (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. | |
virtual bool | doAllowWriteInstance (const ServiceEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &instanceName, EDynamicFlag dynamic, EWriteFlag flag, OperationContext &context) |
Determine if a write of the given instance is allowed. | |
virtual bool | doAllowReadSchema (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context) |
Determine if a read of the schema is allowed in the given namespace. | |
virtual bool | doAllowWriteSchema (const ServiceEnvironmentIFCRef &env, const String &ns, EWriteFlag flag, OperationContext &context) |
Determine if a write of the schema in the given namespace is allowed. | |
virtual bool | doAllowAccessToNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, Authorizer2IFC::EAccessType actype, OperationContext &context) |
Determine if the user is allowed access to a namespace. | |
virtual bool | doAllowCreateNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context) |
Determine if user is allowed to create the given namespace. | |
virtual bool | doAllowDeleteNameSpace (const ServiceEnvironmentIFCRef &env, const String &ns, OperationContext &context) |
Determine if the user is allow to delete the given namespace. | |
virtual bool | doAllowEnumNameSpace (const ServiceEnvironmentIFCRef &env, OperationContext &context) |
Determine if the user is allowed to enumerate namespaces. | |
virtual bool | doAllowMethodInvocation (const ServiceEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &path, const String &MethodName, OperationContext &context) |
Determine if a method may be invoked. | |
Private Member Functions | |
bool | checkAccess (const String &opType, const String &ns, const ServiceEnvironmentIFCRef &env, OperationContext &context) |
Definition at line 44 of file OW_SimpleAuthorizer2.hpp.
|
Create a new SimpleAuthorization object.
Definition at line 68 of file OW_SimpleAuthorizer2.cpp. |
|
Destroy this SimpleAuthorization object.
Definition at line 73 of file OW_SimpleAuthorizer2.cpp. |
|
Definition at line 79 of file OW_SimpleAuthorizer2.cpp. References OW_NAMESPACE::ACCESS_READ, OW_NAMESPACE::ACCESS_READWRITE, OW_NAMESPACE::ACCESS_WRITE, context, OW_NAMESPACE::UserInfo::getInternal(), OW_NAMESPACE::OperationContext::getUserInfo(), and OW_ASSERT. Referenced by doAllowAccessToNameSpace(), doAllowMethodInvocation(), doAllowReadInstance(), and doAllowReadSchema(). |
|
Determine if the user is allowed access to a namespace.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 304 of file OW_SimpleAuthorizer2.cpp. References OW_NAMESPACE::ACCESS_READ, OW_NAMESPACE::ACCESS_READWRITE, OW_NAMESPACE::ACCESS_WRITE, checkAccess(), context, OW_NAMESPACE::Authorizer2IFC::E_READ, OW_NAMESPACE::Authorizer2IFC::E_WRITE, env, and ns. Referenced by doAllowCreateNameSpace(), and doAllowDeleteNameSpace(). |
|
Determine if user is allowed to create the given namespace.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 329 of file OW_SimpleAuthorizer2.cpp. References context, doAllowAccessToNameSpace(), OW_NAMESPACE::Authorizer2IFC::E_WRITE, and env. |
|
Determine if the user is allow to delete the given namespace.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 339 of file OW_SimpleAuthorizer2.cpp. References context, doAllowAccessToNameSpace(), OW_NAMESPACE::Authorizer2IFC::E_WRITE, and env. |
|
Determine if the user is allowed to enumerate namespaces.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 350 of file OW_SimpleAuthorizer2.cpp. |
|
Determine if a method may be invoked.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 358 of file OW_SimpleAuthorizer2.cpp. References OW_NAMESPACE::ACCESS_READWRITE, checkAccess(), context, env, and ns. |
|
Determine if a read of the given instance is allowed. The given objectPath could be a class path or an instance path.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 257 of file OW_SimpleAuthorizer2.cpp. References OW_NAMESPACE::ACCESS_READ, checkAccess(), context, env, and ns. |
|
Determine if a read of the schema is allowed in the given namespace.
Implements OW_NAMESPACE::Authorizer2IFC. Definition at line 283 of file OW_SimpleAuthorizer2.cpp. References OW_NAMESPACE::ACCESS_READ, checkAccess(), context, env, and ns. |
|
Determine if a write of the given instance is allowed.
|
|
Determine if a write of the schema in the given namespace is allowed.
|