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

AccessControl::UnixIdentityRep Class Reference

#include <AccessControl.H>

Inheritance diagram for AccessControl::UnixIdentityRep:

AccessControl::IdentityRep List of all members.

Public Member Functions

 UnixIdentityRep (authunix_parms *aup=NULL, const sockaddr_in *o=NULL, bool own_aup=true) throw ()
const char * user (int n=0) throw ()
const char * group (int n=0) throw ()
uid_t toUnixUser () throw ()
gid_t toUnixGroup () throw ()
void validate () throw ()
bool operator== (const IdentityRep &other) const throw ()
void send (SRPC *srpc) const throw (SRPC::failure)
 ~UnixIdentityRep ()

Protected Member Functions

virtual void fill_caches () throw ()

Private Attributes

authunix_parms * aup_
bool free_aup_

Constructor & Destructor Documentation

AccessControl::UnixIdentityRep::UnixIdentityRep authunix_parms *  aup = NULL,
const sockaddr_in *  o = NULL,
bool  own_aup = true
throw ()
 

Definition at line 327 of file AccessControlClient.C.

References AccessControl::commonInit(), NEW, and NEW_PTRFREE_ARRAY.

AccessControl::UnixIdentityRep::~UnixIdentityRep  ) 
 

Definition at line 392 of file AccessControlClient.C.

References aup_, and free_aup_.


Member Function Documentation

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

Implements AccessControl::IdentityRep.

Definition at line 1219 of file AccessControl.C.

References ReadersWritersLock::acquireRead(), Sequence< Elem, elem_ptrfree >::addhi(), Sequence< Elem, elem_ptrfree >::addlo(), aup_, Table< K, V >::Default::Get(), AccessControl::IdentityRep::groups_cache, NEW_CONSTR, ReadersWritersLock::releaseRead(), RWLOCK_LOCKED_REASON, user(), userGroup_lock, and AccessControl::IdentityRep::users_cache.

Referenced by validate().

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

Reimplemented from AccessControl::IdentityRep.

Definition at line 1214 of file AccessControl.C.

References AccessControl::IdentityRep::group().

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

Implements AccessControl::IdentityRep.

Definition at line 357 of file AccessControlClient.C.

References aup_.

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

Implements AccessControl::IdentityRep.

Definition at line 375 of file AccessControlClient.C.

gid_t AccessControl::UnixIdentityRep::toUnixGroup  )  throw () [inline, virtual]
 

Implements AccessControl::IdentityRep.

Definition at line 174 of file AccessControl.H.

References aup_.

uid_t AccessControl::UnixIdentityRep::toUnixUser  )  throw () [inline, virtual]
 

Implements AccessControl::IdentityRep.

Definition at line 173 of file AccessControl.H.

References aup_.

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

Reimplemented from AccessControl::IdentityRep.

Definition at line 1208 of file AccessControl.C.

References AccessControl::IdentityRep::user().

Referenced by fill_caches().

void AccessControl::UnixIdentityRep::validate  )  throw ()
 

Definition at line 1301 of file AccessControl.C.

References fill_caches(), and AccessControl::IdentityRep::users_cache.


Member Data Documentation

authunix_parms* AccessControl::UnixIdentityRep::aup_ [private]
 

Definition at line 165 of file AccessControl.H.

Referenced by fill_caches(), operator==(), toUnixGroup(), toUnixUser(), and ~UnixIdentityRep().

bool AccessControl::UnixIdentityRep::free_aup_ [private]
 

Definition at line 166 of file AccessControl.H.

Referenced by ~UnixIdentityRep().


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