summaryrefslogtreecommitdiff
path: root/trunk/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp')
-rw-r--r--trunk/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp61
1 files changed, 61 insertions, 0 deletions
diff --git a/trunk/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp b/trunk/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp
new file mode 100644
index 00000000000..9175ac608b0
--- /dev/null
+++ b/trunk/TAO/orbsvcs/orbsvcs/Security/SL2_QOPPolicy.cpp
@@ -0,0 +1,61 @@
+// -*- C++ -*-
+
+#include "orbsvcs/Security/SL2_QOPPolicy.h"
+
+#include "tao/ORB_Constants.h"
+
+
+ACE_RCSID (Security,
+ SL2_QOPPolicy,
+ "$Id$")
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO::Security::QOPPolicy::QOPPolicy (::Security::QOP qop)
+ : qop_ (qop)
+{
+}
+
+TAO::Security::QOPPolicy::~QOPPolicy (void)
+{
+}
+
+CORBA::PolicyType
+TAO::Security::QOPPolicy::policy_type (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return ::Security::SecQOPPolicy;
+}
+
+CORBA::Policy_ptr
+TAO::Security::QOPPolicy::copy (ACE_ENV_SINGLE_ARG_DECL)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ TAO::Security::QOPPolicy * policy = 0;
+ ACE_NEW_THROW_EX (policy,
+ TAO::Security::QOPPolicy (this->qop_),
+ CORBA::NO_MEMORY (
+ CORBA::SystemException::_tao_minor_code (
+ TAO::VMCID,
+ ENOMEM),
+ CORBA::COMPLETED_NO));
+ ACE_CHECK_RETURN (CORBA::Policy::_nil ());
+
+ return policy;
+}
+
+void
+TAO::Security::QOPPolicy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+}
+
+Security::QOP
+TAO::Security::QOPPolicy::qop (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ return this->qop_;
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL