AccessControl::IdentityRep Class Reference

#include <AccessControl.H>

Inheritance diagram for AccessControl::IdentityRep:

Inheritance graph
[legend]
Collaboration diagram for AccessControl::IdentityRep:

Collaboration graph
[legend]
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

Detailed Description

Definition at line 54 of file AccessControl.H.


Member Enumeration Documentation

enum AccessControl::IdentityRep::Flavor

Enumerator:
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::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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

virtual uid_t AccessControl::IdentityRep::toUnixUser (  )  throw () [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.

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

Definition at line 1707 of file AccessControl.C.

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

Definition at line 1718 of file AccessControl.C.

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

Definition at line 1729 of file AccessControl.C.

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

Definition at line 1741 of file AccessControl.C.

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

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

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

Definition at line 105 of file AccessControl.H.

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

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


Member Data Documentation

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().

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().

Flavor AccessControl::IdentityRep::flavor

Definition at line 68 of file AccessControl.H.

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.


The documentation for this class was generated from the following files:
Generated on Fri May 25 00:42:55 2007 for Vesta by  doxygen 1.5.1