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

AccessControl::IdentityRep Class Reference

#include <AccessControl.H>

Inheritance diagram for AccessControl::IdentityRep:

AccessControl::GlobalIdentityRep AccessControl::UnixIdentityRep List of all members.

Public Types

enum  Flavor {
  unix_flavor, global, gssapi, nflavors = 3,
  unspecified = 255
}

Public Member Functions

virtual const char * user (int n=0) throw ()
virtual const char * group (int n=0) throw ()
virtual uid_t toUnixUser ()=0 throw ()
virtual gid_t toUnixGroup ()=0 throw ()
bool userMatch (const char *name) throw ()
bool groupMatch (const char *name) throw ()
bool userMatch (const char *aname, VestaAttribs attribs) throw ()
bool groupMatch (const char *aname, VestaAttribs attribs) throw ()
virtual bool operator== (const IdentityRep &other) const =0 throw ()
bool operator!= (const IdentityRep &other) const throw ()
virtual void send (SRPC *srpc) const =0 throw (SRPC::failure)
virtual ~IdentityRep ()

Public Attributes

Flavor flavor
sockaddr_in origin
bool readOnly

Protected Member Functions

virtual void fill_caches ()=0 throw ()
 IdentityRep ()

Protected Attributes

CharsSequsers_cache
CharsSeqgroups_cache

Member Enumeration Documentation

enum AccessControl::IdentityRep::Flavor
 

Enumeration values:
unix_flavor 
global 
gssapi 
nflavors 
unspecified 

Definition at line 66 of file AccessControl.H.


Constructor & Destructor Documentation

AccessControl::IdentityRep::IdentityRep  )  [inline, protected]
 

Definition at line 59 of file AccessControl.H.

AccessControl::IdentityRep::~IdentityRep  )  [virtual]
 

Definition at line 217 of file AccessControlClient.C.

References groups_cache, and users_cache.


Member Function Documentation

virtual void AccessControl::IdentityRep::fill_caches  )  throw () [protected, pure virtual]
 

Implemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

const char * AccessControl::IdentityRep::group int  n = 0  )  throw () [virtual]
 

Reimplemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

Definition at line 243 of file AccessControlClient.C.

Referenced by AccessControl::UnixIdentityRep::group(), and AccessControl::GlobalIdentityRep::group().

bool AccessControl::IdentityRep::groupMatch const char *  aname,
VestaAttribs  attribs
throw ()
 

Definition at line 1653 of file AccessControl.C.

bool AccessControl::IdentityRep::groupMatch const char *  name  )  throw ()
 

Definition at line 1630 of file AccessControl.C.

bool AccessControl::IdentityRep::operator!= const IdentityRep other  )  const throw () [inline]
 

Definition at line 105 of file AccessControl.H.

virtual bool AccessControl::IdentityRep::operator== const IdentityRep other  )  const throw () [pure virtual]
 

Implemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

virtual void AccessControl::IdentityRep::send SRPC srpc  )  const throw (SRPC::failure) [pure virtual]
 

Implemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

virtual gid_t AccessControl::IdentityRep::toUnixGroup  )  throw () [pure virtual]
 

Implemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

virtual uid_t AccessControl::IdentityRep::toUnixUser  )  throw () [pure virtual]
 

Implemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

const char * AccessControl::IdentityRep::user int  n = 0  )  throw () [virtual]
 

Reimplemented in AccessControl::GlobalIdentityRep, and AccessControl::UnixIdentityRep.

Definition at line 232 of file AccessControlClient.C.

Referenced by AccessControl::UnixIdentityRep::user(), and AccessControl::GlobalIdentityRep::user().

bool AccessControl::IdentityRep::userMatch const char *  aname,
VestaAttribs  attribs
throw ()
 

Definition at line 1641 of file AccessControl.C.

bool AccessControl::IdentityRep::userMatch const char *  name  )  throw ()
 

Definition at line 1619 of file AccessControl.C.


Member Data Documentation

Flavor AccessControl::IdentityRep::flavor
 

Definition at line 68 of file AccessControl.H.

CharsSeq * AccessControl::IdentityRep::groups_cache [protected]
 

Definition at line 56 of file AccessControl.H.

Referenced by AccessControl::UnixIdentityRep::fill_caches(), AccessControl::GlobalIdentityRep::fill_caches(), and ~IdentityRep().

sockaddr_in AccessControl::IdentityRep::origin
 

Definition at line 71 of file AccessControl.H.

bool AccessControl::IdentityRep::readOnly
 

Definition at line 82 of file AccessControl.H.

CharsSeq* AccessControl::IdentityRep::users_cache [protected]
 

Definition at line 56 of file AccessControl.H.

Referenced by AccessControl::UnixIdentityRep::fill_caches(), AccessControl::GlobalIdentityRep::fill_caches(), AccessControl::UnixIdentityRep::validate(), and ~IdentityRep().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:07 2006 for Vesta by  doxygen 1.4.2