summaryrefslogtreecommitdiff
path: root/ACE/TAO/orbsvcs/tests/Security/Secure_Invocation/Foo_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/TAO/orbsvcs/tests/Security/Secure_Invocation/Foo_i.cpp')
-rw-r--r--ACE/TAO/orbsvcs/tests/Security/Secure_Invocation/Foo_i.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/tests/Security/Secure_Invocation/Foo_i.cpp b/ACE/TAO/orbsvcs/tests/Security/Secure_Invocation/Foo_i.cpp
new file mode 100644
index 00000000000..e40e0f69e13
--- /dev/null
+++ b/ACE/TAO/orbsvcs/tests/Security/Secure_Invocation/Foo_i.cpp
@@ -0,0 +1,40 @@
+// -*- C++ -*-
+
+#include "Foo_i.h"
+
+#include "ace/OS_NS_string.h"
+
+
+ACE_RCSID (Secure_Invocation,
+ Foo_i,
+ "$Id$")
+
+
+Foo_i::Foo_i (CORBA::ORB_ptr orb,
+ SecurityLevel3::SecurityCurrent_ptr current)
+ : orb_ (CORBA::ORB::_duplicate (orb)),
+ current_ (SecurityLevel3::SecurityCurrent::_duplicate (current))
+{
+}
+
+void
+Foo_i::baz (void)
+{
+ SecurityLevel3::ClientCredentials_var credentials =
+ this->current_->client_credentials ();
+
+ CORBA::String_var id = credentials->creds_id ();
+
+ ACE_DEBUG ((LM_DEBUG,
+ "\n"
+ "ClientCredentials ID\n"
+ "====================\n"
+ "%s\n",
+ id.in ()));
+}
+
+void
+Foo_i::shutdown (void)
+{
+ this->orb_->shutdown (0);
+}