A "Principal" identifies an authenticated entity in the network administration framework. More...
#include <Principal.h>
Public Types | |
typedef Principal_ptr | _ptr_type |
typedef Principal_var | _var_type |
Public Member Functions | |
unsigned long | _incr_refcnt (void) |
unsigned long | _decr_refcnt (void) |
Principal (void) | |
Static Public Member Functions | |
static Principal * | _duplicate (Principal *) |
static Principal * | _nil (void) |
Public Attributes | |
CORBA::OctetSeq | id |
Protected Member Functions | |
~Principal (void) | |
Destructor. | |
Private Member Functions | |
Principal & | operator= (const CORBA::Principal_ptr &) |
Principal (const CORBA::Principal_ptr &) | |
Private Attributes | |
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > | refcount_ |
Reference counter. |
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 56 of file Principal.h.
Definition at line 77 of file Principal.h.
Definition at line 78 of file Principal.h.
CORBA::Principal::Principal | ( | void | ) |
Definition at line 21 of file Principal.cpp.
: refcount_ (1) { }
CORBA::Principal::~Principal | ( | void | ) | [protected] |
Destructor.
Protected destructor to enforce proper memory management through the reference counting mechanism.
Definition at line 26 of file Principal.cpp.
{ }
CORBA::Principal::Principal | ( | const CORBA::Principal_ptr & | ) | [private] |
unsigned long CORBA::Principal::_decr_refcnt | ( | void | ) |
Definition at line 16 of file Principal.inl.
{ unsigned long new_count = --this->refcount_; if (new_count == 0) delete this; return new_count; }
CORBA::Principal * CORBA::Principal::_duplicate | ( | CORBA::Principal * | x | ) | [static] |
Definition at line 46 of file Principal.inl.
{ if (x != 0) { x->_incr_refcnt (); } return x; }
unsigned long CORBA::Principal::_incr_refcnt | ( | void | ) |
Definition at line 38 of file Principal.inl.
{ return ++this->refcount_; }
CORBA::Principal * CORBA::Principal::_nil | ( | void | ) | [static] |
Definition at line 59 of file Principal.inl.
{
return 0;
}
Principal& CORBA::Principal::operator= | ( | const CORBA::Principal_ptr & | ) | [private] |
CORBA::OctetSeq CORBA::Principal::id |
Definition at line 62 of file Principal.h.
ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> CORBA::Principal::refcount_ [private] |
Reference counter.
Definition at line 97 of file Principal.h.