summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h')
-rw-r--r--ACE/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h83
1 files changed, 83 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h b/ACE/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
new file mode 100644
index 00000000000..3ad7d0f6e0a
--- /dev/null
+++ b/ACE/TAO/orbsvcs/orbsvcs/Security/SL3_SecurityCurrent_Impl.h
@@ -0,0 +1,83 @@
+// -*- C++ -*-
+
+// ===================================================================
+/**
+ * @file SL3_SecurityCurrent_Impl.h
+ *
+ * $Id$
+ *
+ * @author Ossama Othman <ossama@dre.vanderbilt.edu>
+ */
+// ===================================================================
+
+#ifndef TAO_SL3_SECURITY_CURRENT_IMPL_H
+#define TAO_SL3_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/SecurityLevel3C.h"
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+namespace TAO
+{
+ namespace SL3
+ {
+ /**
+ * @class SecurityCurrent_Impl
+ *
+ * @brief Base class for the TSS portion of any underlying
+ * security mechanism.
+ *
+ * This class provides the same interface as the
+ * SecurityLevel3::SecurityCurrent 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 SecurityCurrent_Impl
+ {
+ public:
+
+ /// Destructor.
+ virtual ~SecurityCurrent_Impl (void);
+
+ /**
+ * @name SecurityLevel3::Current Methods
+ *
+ * These methods are founds in the SecurityLevel3::Current
+ * interface.
+ */
+ //@{
+ /// Return the Credentials received from the client associate with
+ /// the current request.
+ virtual SecurityLevel3::ClientCredentials_ptr client_credentials ()
+ = 0;
+
+ /// Is the current request local?
+ virtual CORBA::Boolean request_is_local ()
+ = 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_SL3_SECURITY_CURRENT_IMPL_H */