blob: 905dfc4a8e8d3ac107f281807fa798b63fe24221 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
// This may look like C, but it's really -*- C++ -*-
// ============================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// objtable.hh
//
// = DESCRIPTION
// 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).
//
// = AUTHOR
// Copyright 1994-1995 by Sun Microsystems Inc.
//
// ============================================================================
#if !defined (TAO_PRINCIPAL_H)
# define TAO_PRINCIPAL_H
# include "ace/OS.h" // WARNING! This MUST come before objbase.h on WIN32!
# include <objbase.h>
# include <initguid.h>
# include "ace/Synch.h"
# include "tao/sequence.h"
extern "C" const IID IID_CORBA_Principal;
void CORBA_release (CORBA_Principal_ptr principal);
CORBA_Boolean CORBA_is_nil (CORBA_Principal_ptr principal);
class ACE_Svc_Export 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 (void);
ULONG __stdcall Release (void);
HRESULT __stdcall QueryInterface (REFIID riid,
void **ppv);
CORBA_Principal (void);
private:
ACE_SYNCH_MUTEX lock_;
u_int refcount_;
virtual ~CORBA_Principal (void);
// = 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 /* __GNUG__ */
};
#endif /* TAO_PRINCIPAL_H */
|