Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SecurityCache Class Reference

List of all members.

Public Member Functions

void free ()
int getErrorFileName (const char *root, int error, const char *sysdirectory, string &out)
int getMaxNodes ()
int getPermissionMask (SecurityToken *st)
int getSecurityFile (const char *file, const char *sys, string &out)
 SecurityCache ()
void setMaxNodes (int)
 ~SecurityCache ()

Private Attributes

HashMap< string, XmlParser * > dictionary
int limit
SecurityManager sm

Constructor & Destructor Documentation

SecurityCache::SecurityCache  ) 
 

Constructor for the SecurityCache object.

SecurityCache::~SecurityCache  ) 
 

Destroy the security cache object.


Member Function Documentation

void SecurityCache::free  ) 
 

free the memory used by the SecurityCache object.

int SecurityCache::getErrorFileName const char *  directory,
int  error,
const char *  sysdirectory,
string &  out
 

Get the error file name from the security file.

int SecurityCache::getMaxNodes  ) 
 

Get the actual limit of open nodes.

int SecurityCache::getPermissionMask SecurityToken st  ) 
 

Get the permission mask for the specified file and user. If the security file to use is not loaded it will be loaded and added to the cache dictionary for faster future accesses.

int SecurityCache::getSecurityFile const char *  dir,
const char *  sys,
string &  out
 

Get the security file to use starting from the file location, returns zero on success.

Parameters:
dir The directory we need a security parser for.
sys The system directory.
out Output string where put the security file path.

void SecurityCache::setMaxNodes int  newLimit  ) 
 

Set a new limit on the nodes to keep in memory.


Member Data Documentation

HashMap<string, XmlParser*> SecurityCache::dictionary [private]
 

Store a list of opened files using a hash dictionary.

int SecurityCache::limit [private]
 

SecurityManager SecurityCache::sm [private]
 

Object used to handle security on the server.


Generated on Thu May 1 12:41:04 2008 for MyServer by  doxygen 1.3.9.1