OW_NAMESPACE::UserInfo Class Reference

The UserInfo class is used to encapsulate information about the user making a request of the CIMOM. More...

#include <OW_UserInfo.hpp>

Collaboration diagram for OW_NAMESPACE::UserInfo:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 UserInfo (const String &userName)
 Create a new UserInfo object.
 UserInfo (const UserInfo &arg)
UserInfooperator= (const UserInfo &arg)
String getUserName () const
bool getInternal () const

Private Member Functions

 UserInfo ()
 Create a new UserInfo object that access rights will not be checked on.
void setInternal ()
 Set this UserInfo object to internal.

Private Attributes

String m_userName
 The user name associated with this UserInfo object.
bool m_internal
 Internal flags.

Friends

class OperationContext
class AccessMgr

Detailed Description

The UserInfo class is used to encapsulate information about the user making a request of the CIMOM.

This is information is retreived at the time the user authenticates to the CIMOM. If an UserInfo object contains a user name, then read/write request will be verified against the access rights of that user. If an UserInfo object does NOT contain a user name and the m_internal flag is set, then access rights are not checked on read/write operations. Only select components of the CIMOM are allowed to construct this type of an UserInfo object. Invariants:

Definition at line 59 of file OW_UserInfo.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::UserInfo::UserInfo const String userName  ) 
 

Create a new UserInfo object.

Parameters:
userName The user name to use when checking access rights for read/write operations.

Definition at line 43 of file OW_UserInfo.cpp.

OW_NAMESPACE::UserInfo::UserInfo const UserInfo arg  ) 
 

Definition at line 46 of file OW_UserInfo.cpp.

OW_NAMESPACE::UserInfo::UserInfo  )  [private]
 

Create a new UserInfo object that access rights will not be checked on.

This method is private so only friend class are allowed to create this type of UserInfo object.

Definition at line 58 of file OW_UserInfo.cpp.


Member Function Documentation

bool OW_NAMESPACE::UserInfo::getInternal  )  const
 

Returns:
true if access rights are not to be checked on this UserInfo object. Otherwise false.

Definition at line 61 of file OW_UserInfo.cpp.

References m_internal.

Referenced by OW_NAMESPACE::SimpleAuthorizer2::checkAccess().

String OW_NAMESPACE::UserInfo::getUserName  )  const
 

Returns:
The user name that is associated with this UserInfo object.

Definition at line 56 of file OW_UserInfo.cpp.

References m_userName.

UserInfo & OW_NAMESPACE::UserInfo::operator= const UserInfo arg  ) 
 

Definition at line 49 of file OW_UserInfo.cpp.

References m_internal, and m_userName.

void OW_NAMESPACE::UserInfo::setInternal  )  [private]
 

Set this UserInfo object to internal.

Definition at line 63 of file OW_UserInfo.cpp.

References m_internal.


Friends And Related Function Documentation

friend class AccessMgr [friend]
 

Definition at line 99 of file OW_UserInfo.hpp.

friend class OperationContext [friend]
 

Definition at line 98 of file OW_UserInfo.hpp.


Member Data Documentation

bool OW_NAMESPACE::UserInfo::m_internal [private]
 

Internal flags.

If true access rights are not checked.

Definition at line 93 of file OW_UserInfo.hpp.

Referenced by OW_NAMESPACE::AccessMgr::checkAccess(), getInternal(), operator=(), and setInternal().

String OW_NAMESPACE::UserInfo::m_userName [private]
 

The user name associated with this UserInfo object.

Definition at line 91 of file OW_UserInfo.hpp.

Referenced by getUserName(), and operator=().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:14:50 2006 for openwbem by  doxygen 1.4.6