00001 // -*- C++ -*- 00002 00003 #include "orbsvcs/Security/SL2_QOPPolicy.h" 00004 00005 #include "tao/ORB_Constants.h" 00006 00007 00008 ACE_RCSID (Security, 00009 SL2_QOPPolicy, 00010 "SL2_QOPPolicy.cpp,v 1.4 2006/03/14 06:14:35 jtc Exp") 00011 00012 00013 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00014 00015 TAO::Security::QOPPolicy::QOPPolicy (::Security::QOP qop) 00016 : qop_ (qop) 00017 { 00018 } 00019 00020 TAO::Security::QOPPolicy::~QOPPolicy (void) 00021 { 00022 } 00023 00024 CORBA::PolicyType 00025 TAO::Security::QOPPolicy::policy_type (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) 00026 ACE_THROW_SPEC ((CORBA::SystemException)) 00027 { 00028 return ::Security::SecQOPPolicy; 00029 } 00030 00031 CORBA::Policy_ptr 00032 TAO::Security::QOPPolicy::copy (ACE_ENV_SINGLE_ARG_DECL) 00033 ACE_THROW_SPEC ((CORBA::SystemException)) 00034 { 00035 TAO::Security::QOPPolicy * policy = 0; 00036 ACE_NEW_THROW_EX (policy, 00037 TAO::Security::QOPPolicy (this->qop_), 00038 CORBA::NO_MEMORY ( 00039 CORBA::SystemException::_tao_minor_code ( 00040 TAO::VMCID, 00041 ENOMEM), 00042 CORBA::COMPLETED_NO)); 00043 ACE_CHECK_RETURN (CORBA::Policy::_nil ()); 00044 00045 return policy; 00046 } 00047 00048 void 00049 TAO::Security::QOPPolicy::destroy (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) 00050 ACE_THROW_SPEC ((CORBA::SystemException)) 00051 { 00052 } 00053 00054 Security::QOP 00055 TAO::Security::QOPPolicy::qop (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) 00056 ACE_THROW_SPEC ((CORBA::SystemException)) 00057 { 00058 return this->qop_; 00059 } 00060 00061 TAO_END_VERSIONED_NAMESPACE_DECL