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
00074 virtual CORBA::Boolean request_is_local (void);
00075
00076
00077
00078
00079
00080
00081
00082
00083 size_t tss_slot (void) const;
00084
00085 protected:
00086
00087
00088
00089
00090
00091
00092 ~SecurityCurrent (void);
00093
00094 private:
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108 SecurityCurrent_Impl * implementation (void);
00109
00110 private:
00111
00112
00113
00114
00115
00116
00117
00118
00119 SecurityCurrent (const SecurityCurrent &);
00120 void operator= (const SecurityCurrent &);
00121
00122
00123 private:
00124
00125
00126 const size_t tss_slot_;
00127
00128
00129
00130 TAO_ORB_Core * const orb_core_;
00131
00132 };
00133
00134 }
00135 }
00136
00137 TAO_END_VERSIONED_NAMESPACE_DECL
00138
00139 #if defined (__ACE_INLINE__)
00140 # include "orbsvcs/Security/SL3_SecurityCurrent.inl"
00141 #endif
00142
00143 #if defined(_MSC_VER)
00144 #pragma warning(pop)
00145 #endif
00146
00147 #include "ace/post.h"
00148
00149 #endif