blob: 7bf32d6c168e06eba152444f909a0ff4d338743c (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
// -*- C++ -*-
//=============================================================================
/**
* @file SSLIOP_TargetCredentials.h
*
* $Id$
*
* @author Ossama Othman <ossama@uci.edu>
*/
//=============================================================================
#ifndef TAO_SSLIOP_TARGET_CREDENTIALS_H
#define TAO_SSLIOP_TARGET_CREDENTIALS_H
#include "ace/pre.h"
#include "SSLIOP_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "SSLIOP_Credentials.h"
class TAO_SSLIOP_TargetCredentials;
typedef TAO_SSLIOP_TargetCredentials* TAO_SSLIOP_TargetCredentials_ptr;
/**
* @class TAO_SSLIOP_TargetCredentials
*
* @brief SSLIOP-specific implementation of the
* SecurityLevel2::TargetCredentials interface.
*
*
*/
class TAO_SSLIOP_TargetCredentials
: public virtual TAO_SSLIOP_Credentials,
public virtual SecurityLevel2::TargetCredentials
{
public:
TAO_SSLIOP_TargetCredentials (X509 *cert, EVP_PKEY *evp);
/**
* @name SecurityLevel2::Credentials Methods
*
* SecurityLevel2::Credentials methods implemented for
* SecurityLevel2::TargetCredentials.
*/
//@{
virtual SecurityLevel2::Credentials_ptr copy (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual Security::InvocationCredentialsType credentials_type (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
//@}
/**
* @name SecurityLevel2::TargetCredentials Methods
*
* Methods required by the SecurityLevel2::TargetCredentials
* interface.
*/
//@{
virtual SecurityLevel2::Credentials_ptr initiating_credentials (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
virtual Security::AssociationOptions association_options_used (
ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException));
//@}
//@{
#if !defined(__GNUC__) || !defined (ACE_HAS_GNUG_PRE_2_8)
typedef TAO_SSLIOP_TargetCredentials_ptr _ptr_type;
// typedef TAO_SSLIOP_TargetCredentials_var _var_type;
#endif /* ! __GNUC__ || g++ >= 2.8 */
static int _tao_class_id;
// The static operations.
static TAO_SSLIOP_TargetCredentials_ptr _duplicate (TAO_SSLIOP_TargetCredentials_ptr obj);
static TAO_SSLIOP_TargetCredentials_ptr _narrow (
CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static TAO_SSLIOP_TargetCredentials_ptr _unchecked_narrow (
CORBA::Object_ptr obj
ACE_ENV_ARG_DECL_WITH_DEFAULTS
);
static TAO_SSLIOP_TargetCredentials_ptr _nil (void)
{
return (TAO_SSLIOP_TargetCredentials_ptr)0;
}
virtual void *_tao_QueryInterface (ptr_arith_t type);
//@}
};
#include "ace/post.h"
#endif /* TAO_SSLIOP_TARGET_CREDENTIALS_H */
|