blob: 3c4d5846b56e17eacf42beffeaacb478ede5119e (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
// -*- C++ -*-
// ===================================================================
/**
* @file Security_Current_Impl.h
*
* $Id$
*
* @author Ossama Othman <ossama@uci.edu>
*/
// ===================================================================
#ifndef TAO_SECURITY_CURRENT_IMPL_H
#define TAO_SECURITY_CURRENT_IMPL_H
#include /**/ "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "orbsvcs/Security/security_export.h"
#include "orbsvcs/SecurityLevel2C.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace TAO
{
namespace Security
{
/**
* @class Current_Impl
*
* @brief Base class for the TSS portion of any underlying
* security mechanism.
*
* This class provides the same interface as the
* SecurityLevel3::Current object. However, it is not derived
* from that interface since we need to explicitly avoid virtual
* inheritance so that it is safe to store subclasses in a "void
* *" and later cast that pointer back to the subclass pointer
* type.
*/
class TAO_Security_Export Current_Impl
{
public:
/// Destructor.
virtual ~Current_Impl (void);
/**
* @name SecurityLevel1::Current Methods
*
* These methods are founds in the SecurityLevel1::Current
* interface.
*/
//@{
/// Return the security attributes corresponding to the types in
/// the given attribute type list associated with the current
/// request.
virtual ::Security::AttributeList * get_attributes (
const ::Security::AttributeTypeList & attributes)
= 0;
//@}
/**
* @name SecurityLevel2::Current Methods
*
* These methods are founds in the SecurityLevel2::Current
* interface.
*/
//@{
/// Return the Credentials received from the client associate with
/// the current request.
virtual SecurityLevel2::ReceivedCredentials_ptr received_credentials ()
= 0;
//@}
/// Return the unique tag that identifies the concrete subclass.
virtual CORBA::ULong tag (void) const = 0;
};
} // End Security namespace.
} // End TAO namespace.
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_SECURITY_CURRENT_IMPL_H */
|