00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef TAO_SL3_SECURITY_CURRENT_H
00015 #define TAO_SL3_SECURITY_CURRENT_H
00016
00017 #include "ace/pre.h"
00018
00019 #include "orbsvcs/Security/security_export.h"
00020
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif
00024
00025 #include "orbsvcs/Security/SL3_SecurityCurrent_Impl.h"
00026
00027 #include "orbsvcs/SecurityLevel3C.h"
00028
00029 #include "tao/LocalObject.h"
00030
00031 #if defined(_MSC_VER)
00032 #pragma warning(push)
00033 #pragma warning(disable:4250)
00034 #endif
00035
00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00037
00038 class TAO_ORB_Core;
00039
00040 namespace TAO
00041 {
00042 namespace SL3
00043 {
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056 class TAO_Security_Export SecurityCurrent
00057 : public virtual SecurityLevel3::SecurityCurrent,
00058 public virtual TAO_Local_RefCounted_Object
00059 {
00060 public:
00061
00062
00063 SecurityCurrent (size_t tss_slot, TAO_ORB_Core * oc);
00064
00065
00066
00067
00068
00069
00070
00071
00072 virtual SecurityLevel3::ClientCredentials_ptr client_credentials (
00073 ACE_ENV_SINGLE_ARG_DECL)
00074 ACE_THROW_SPEC ((CORBA::SystemException));
00075
00076 virtual CORBA::Boolean request_is_local (ACE_ENV_SINGLE_ARG_DECL)
00077 ACE_THROW_SPEC ((CORBA::SystemException));
00078
00079
00080
00081
00082
00083
00084
00085
00086 size_t tss_slot (void) const;
00087
00088 protected:
00089
00090
00091
00092
00093
00094
00095 ~SecurityCurrent (void);
00096
00097 private:
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111 SecurityCurrent_Impl * implementation (void);
00112
00113 private:
00114
00115
00116
00117
00118
00119
00120
00121
00122 SecurityCurrent (const SecurityCurrent &);
00123 void operator= (const SecurityCurrent &);
00124
00125
00126 private:
00127
00128
00129 const size_t tss_slot_;
00130
00131
00132
00133 TAO_ORB_Core * const orb_core_;
00134
00135 };
00136
00137 }
00138 }
00139
00140 TAO_END_VERSIONED_NAMESPACE_DECL
00141
00142 #if defined (__ACE_INLINE__)
00143 # include "orbsvcs/Security/SL3_SecurityCurrent.inl"
00144 #endif
00145
00146 #if defined(_MSC_VER)
00147 #pragma warning(pop)
00148 #endif
00149
00150 #include "ace/post.h"
00151
00152 #endif