Contains the mapping between a subject User@Host and the privileges they can perform on a secured object such as a Realm, Channel or Queue. More...
#include <nACLEntry.h>
Public Member Functions | |
virtual bool | canList () |
Can this subject list the contents of an ACL. More... | |
virtual bool | canModify () |
Can this subject modify acl entries in a secure object. More... | |
void | copyBitArray (BitArray *pArray) |
Replace the bit array representing the ACL with *pArray. More... | |
BitArray * | getBitSet () |
Creates a new nACLEntry with the subject being name@host. More... | |
virtual const std::string & | getHost () |
Returns the host's name as a string. More... | |
virtual const std::string & | getName () |
Returns the name of the ACLEntry. More... | |
std::string | getSubject () |
This method returns the completed subject User@Host. More... | |
virtual bool | hasFullPrivileges () |
Does this subject have full privileges for the secure object. More... | |
virtual bool | lessThan (nACLEntry *pItem) |
Used to compares this Object with another to determine sorting position. More... | |
virtual bool | lessThan (longlong aLong) |
Required as part of the SortedObject interface. More... | |
nACLEntry (const std::string &name, const std::string &host) | |
Creates a new nACLEntry with the subject being name@host. More... | |
nACLEntry (const std::string &subject, BitArray *pBitset=NULL) | |
Creates a new nACLEntry with the subject being name@host. More... | |
virtual void | setFullPrivileges (bool val) |
Sets the subject to have full privileges for this secure object allowing the subject complete control over the secure object. More... | |
virtual void | setList (bool val) |
Changes the current setting for this user to allow/disallow ACL listing. More... | |
virtual void | setModify (bool val) |
Changes the current setting for this subject to allow/disallow modifying ACL. More... | |
Contains the mapping between a subject User@Host and the privileges they can perform on a secured object such as a Realm, Channel or Queue.
On construction of these objects the name string can be set to "*" meaning All users and the host can also be set to "*". For example, all users from a host called test.com can be configured such as *@test.com or a more insecure method for allowing all administrators access would be administrator@* (Not recommended).
com::pcbsys::nirvana::nAdminAPI::nACLEntry::nACLEntry | ( | const std::string & | name, |
const std::string & | host | ||
) |
Creates a new nACLEntry with the subject being name@host.
There are no default permissions set so this subject can perform NO actions on the secured objects
name | Username/Token for the subject |
host | the host they can connect from |
com::pcbsys::nirvana::nAdminAPI::nACLEntry::nACLEntry | ( | const std::string & | subject, |
BitArray * | pBitset = NULL |
||
) |
Creates a new nACLEntry with the subject being name@host.
There are no default permissions set so this subject can perform NO actions on the secured objects
subject | Username/Token for the subject |
*pBitset | the bitset denoting the permissions for this acl |
|
virtual |
Can this subject list the contents of an ACL.
|
virtual |
Can this subject modify acl entries in a secure object.
void com::pcbsys::nirvana::nAdminAPI::nACLEntry::copyBitArray | ( | BitArray * | pArray | ) |
Replace the bit array representing the ACL with *pArray.
*pArray | bit array representing an ACL |
BitArray* com::pcbsys::nirvana::nAdminAPI::nACLEntry::getBitSet | ( | ) |
Creates a new nACLEntry with the subject being name@host.
There are no default permissions set so this subject can perform NO actions on the secured objects
|
virtual |
Returns the host's name as a string.
|
virtual |
Returns the name of the ACLEntry.
std::string com::pcbsys::nirvana::nAdminAPI::nACLEntry::getSubject | ( | ) |
This method returns the completed subject User@Host.
|
virtual |
Does this subject have full privileges for the secure object.
This privilege enables the subject to perform ANY action against this secure object if set to true.
|
virtual |
Used to compares this Object with another to determine sorting position.
item | Object to compare |
|
virtual |
Required as part of the SortedObject interface.
For internal use only
|
virtual |
Sets the subject to have full privileges for this secure object allowing the subject complete control over the secure object.
WARNING: Use with great caution. Should only set what is required rather than this entry. By default the realm server will automatically set this for the default administrator
val | true for full, false otherwise |
|
virtual |
Changes the current setting for this user to allow/disallow ACL listing.
WARNING: Should be used in conjunction with ModifyACL
val | boolean specifying the permission status |
|
virtual |
Changes the current setting for this subject to allow/disallow modifying ACL.
WARNING: Should not be given to normal subjects but only to subjects which need to administer the Secure Object.
val | boolean specifying the permission status |