blob: 55909e5ae4b7802ac1ba5aba0039f7024e183531 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
//
// Header file for Win32 interface to CORBA's "Principal" type.
//
// 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).
//
#if !defined(ACE_ROA_PRINCIPAL_H)
# define ACE_ROA_PRINCIPAL_H
# include <ace/Synch.h>
typedef class CORBA_Principal *CORBA_Principal_ptr;
void CORBA_release (CORBA_Principal_ptr principal);
CORBA_Boolean CORBA_is_nil (CORBA_Principal_ptr principal);
extern const IID IID_CORBA_Principal;
class _EXPCLASS CORBA_Principal : public IUnknown
{
public:
//
// To applications, the identifier is an opaque ID.
//
CORBA_SEQUENCE <CORBA_Octet> id;
// XXX add "==", "<", ">" operators
//
// Stuff required for COM IUnknown support
//
ULONG __stdcall AddRef ();
ULONG __stdcall Release ();
HRESULT __stdcall QueryInterface (
REFIID riid,
void **ppv
);
CORBA_Principal ();
private:
ACE_Thread_Mutex principal_lock_;
unsigned _refcount;
virtual ~CORBA_Principal ();
// these are not provided
CORBA_Principal &operator = (const CORBA_Principal_ptr &);
CORBA_Principal (const CORBA_Principal_ptr &);
#if defined (__GNUG__)
//
// G++ (even 2.6.3) stupidly thinks instances can't be
// created. This de-warns.
//
friend class everyone_needs_a_friend;
#endif
};
#endif
|