Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

CORBA_Principal Class Reference

A "Principal" identifies an authenticated entity in the network administration framework. Identities are used to control acccess (authorization) as well as in audit trails (accountability). More...

#include <Principal.h>

List of all members.

Public Types

typedef CORBA_Principal_ptr _ptr_type
typedef CORBA_Principal_var _var_type

Public Methods

CORBA::ULong _incr_refcnt (void)
CORBA::ULong _decr_refcnt (void)
 CORBA_Principal (void)

Static Public Methods

CORBA_Principal * _duplicate (CORBA_Principal *)
CORBA_Principal * _nil (void)

Public Attributes

CORBA::OctetSeq id

Private Methods

 ~CORBA_Principal (void)
CORBA_Principal & operator= (const CORBA::Principal_ptr &)
 CORBA_Principal (const CORBA::Principal_ptr &)

Private Attributes

CORBA::ULong refcount_
 Number of outstanding references to this object. More...

TAO_SYNCH_MUTEX refcount_mutex_
 Protect the reference count, this is OK because we do no duplicates or releases on the critical path. More...


Detailed Description

A "Principal" identifies an authenticated entity in the network administration framework. Identities are used to control acccess (authorization) as well as in audit trails (accountability).

Definition at line 38 of file Principal.h.


Member Typedef Documentation

typedef CORBA_Principal_ptr CORBA_Principal::_ptr_type
 

Definition at line 59 of file Principal.h.

typedef CORBA_Principal_var CORBA_Principal::_var_type
 

Definition at line 60 of file Principal.h.


Constructor & Destructor Documentation

CORBA_Principal::CORBA_Principal void   
 

Definition at line 17 of file Principal.cpp.

00018   : refcount_ (1)
00019 {
00020 }

CORBA_Principal::~CORBA_Principal void    [private]
 

Definition at line 22 of file Principal.cpp.

00023 {
00024 }

CORBA_Principal::CORBA_Principal const CORBA::Principal_ptr   [private]
 


Member Function Documentation

ACE_INLINE CORBA::ULong CORBA_Principal::_decr_refcnt void   
 

Definition at line 10 of file Principal.i.

References refcount_.

00011 {
00012   {
00013     this->refcount_--;
00014     if (this->refcount_ != 0)
00015       return this->refcount_;
00016   }
00017 
00018   delete this;
00019   return 0;
00020 }

ACE_INLINE CORBA_Principal * CORBA_Principal::_duplicate CORBA_Principal *    [static]
 

Definition at line 37 of file Principal.i.

References _incr_refcnt.

Referenced by CORBA_Principal_out::operator=, and CORBA_Principal_var::operator=.

00038 {
00039   if (x != 0)
00040     x->_incr_refcnt ();
00041   return x;
00042 }

ACE_INLINE CORBA::ULong CORBA_Principal::_incr_refcnt void   
 

Definition at line 30 of file Principal.i.

References refcount_.

Referenced by _duplicate.

00031 {
00032   return this->refcount_++;
00033 }

ACE_INLINE CORBA_Principal * CORBA_Principal::_nil void    [static]
 

Definition at line 46 of file Principal.i.

Referenced by CORBA_Principal_var::_retn, CORBA_Principal_out::CORBA_Principal_out, and CORBA_Principal_var::out.

00047 {
00048   return 0;
00049 }

CORBA_Principal& CORBA_Principal::operator= const CORBA::Principal_ptr   [private]
 


Member Data Documentation

CORBA::OctetSeq CORBA_Principal::id
 

Definition at line 44 of file Principal.h.

Referenced by operator<<, and operator>>.

CORBA::ULong CORBA_Principal::refcount_ [private]
 

Number of outstanding references to this object.

Definition at line 73 of file Principal.h.

Referenced by _decr_refcnt, and _incr_refcnt.

TAO_SYNCH_MUTEX CORBA_Principal::refcount_mutex_ [private]
 

Protect the reference count, this is OK because we do no duplicates or releases on the critical path.

Definition at line 77 of file Principal.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:01:39 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002