TAO  Snapshot(2023/04/28-19:34)
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
CORBA::Principal Class Reference

A "Principal" identifies an authenticated entity in the network administration framework. More...

#include <Principal.h>

Collaboration diagram for CORBA::Principal:
Collaboration graph
[legend]

Public Types

typedef Principal_ptr _ptr_type
 
typedef Principal_var _var_type
 

Public Member Functions

unsigned long _incr_refcount (void)
 
unsigned long _decr_refcount (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. More...
 

Private Member Functions

Principaloperator= (const CORBA::Principal_ptr &)
 
 Principal (const CORBA::Principal_ptr &)
 

Private Attributes

ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > refcount_
 Reference counter. 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).

Note
This CORBA feature has been deprecated by the OMG. Use the CORBA Security Service instead.

Definition at line 56 of file Principal.h.

Member Typedef Documentation

◆ _ptr_type

Definition at line 77 of file Principal.h.

◆ _var_type

Definition at line 78 of file Principal.h.

Constructor & Destructor Documentation

◆ Principal() [1/2]

CORBA::Principal::Principal ( void  )

Definition at line 14 of file Principal.cpp.

15  : refcount_ (1)
16 {
17 }
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > refcount_
Reference counter.
Definition: Principal.h:100

◆ ~Principal()

CORBA::Principal::~Principal ( void  )
protected

Destructor.

Protected destructor to enforce proper memory management through the reference counting mechanism.

Definition at line 19 of file Principal.cpp.

20 {
21 }

◆ Principal() [2/2]

CORBA::Principal::Principal ( const CORBA::Principal_ptr )
private

Member Function Documentation

◆ _decr_refcount()

unsigned long CORBA::Principal::_decr_refcount ( void  )

Definition at line 6 of file Principal.inl.

7 {
8  unsigned long new_count = --this->refcount_;
9 
10  if (new_count == 0)
11  delete this;
12 
13  return new_count;
14 }
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > refcount_
Reference counter.
Definition: Principal.h:100

◆ _duplicate()

CORBA::Principal * CORBA::Principal::_duplicate ( CORBA::Principal x)
static

Definition at line 26 of file Principal.inl.

27 {
28  if (x != 0)
29  {
30  x->_incr_refcount ();
31  }
32 
33  return x;
34 }
unsigned long _incr_refcount(void)
Definition: Principal.inl:18

◆ _incr_refcount()

unsigned long CORBA::Principal::_incr_refcount ( void  )

Definition at line 18 of file Principal.inl.

19 {
20  return ++this->refcount_;
21 }
ACE_Atomic_Op< TAO_SYNCH_MUTEX, unsigned long > refcount_
Reference counter.
Definition: Principal.h:100

◆ _nil()

CORBA::Principal * CORBA::Principal::_nil ( void  )
static

Definition at line 39 of file Principal.inl.

40 {
41  return 0;
42 }

◆ operator=()

Principal& CORBA::Principal::operator= ( const CORBA::Principal_ptr )
private

Member Data Documentation

◆ id

CORBA::OctetSeq CORBA::Principal::id

Definition at line 62 of file Principal.h.

◆ refcount_

ACE_Atomic_Op<TAO_SYNCH_MUTEX, unsigned long> CORBA::Principal::refcount_
private

Reference counter.

Definition at line 100 of file Principal.h.


The documentation for this class was generated from the following files: