- com
- pcbsys
- nirvana
- nAdminAPI
- nServiceACLEntry
Allows the ability to programmatically allow or deny access to a service. More...
#include <nServiceACLEntry.h>
Public Member Functions | |
virtual bool | canConnect () |
Can the subject connect to the service. More... | |
nServiceACLEntry (const std::string &name, const std::string &host) | |
Creates a new nServiceACLEntry for the name/ supplied. More... | |
nServiceACLEntry (const std::string &subject, BitArray *pBitset) | |
Creates a new nServiceACLEntry for the name/ supplied. More... | |
nServiceACLEntry (nSecurityGroup *grp, BitArray *pBitset) | |
Creates a new nServiceACLEntry for the security group supplied. More... | |
virtual void | setConnect (bool val) |
Allow or deny the subject to connect to the service. More... | |
Public Member Functions inherited from com::pcbsys::nirvana::nAdminAPI::nACLEntry | |
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... | |
Allows the ability to programmatically allow or deny access to a service.
com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::nServiceACLEntry | ( | const std::string & | name, |
const std::string & | host | ||
) |
Creates a new nServiceACLEntry for the name/ supplied.
By default this subject has NO privileges and they must be set.
name | Name for the subject |
host | Host name for the subject |
nAdminIllegalArgumentException | if an invalid or null argument is passed |
com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::nServiceACLEntry | ( | const std::string & | subject, |
BitArray * | pBitset | ||
) |
Creates a new nServiceACLEntry for the name/ supplied.
By default this subject has NO privileges and they must be set.
subject | Name for the subject |
*pBitset | a BitArray indicating the privileges associated with this ACL |
nAdminIllegalArgumentException | if an invalid or null argument is passed |
com::pcbsys::nirvana::nAdminAPI::nServiceACLEntry::nServiceACLEntry | ( | nSecurityGroup * | grp, |
BitArray * | pBitset | ||
) |
Creates a new nServiceACLEntry for the security group supplied.
By default this subject has NO privileges and they must be set.
*grp | The security group to create the ACL for |
*pBitset | a BitArray indicating the privileges associated with this ACL |
nAdminIllegalArgumentException | if an invalid or null argument is passed |
|
virtual |
Can the subject connect to the service.
|
virtual |
Allow or deny the subject to connect to the service.
val | boolean value |