SL2_QOPPolicy.cpp

Go to the documentation of this file.
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            "$Id: SL2_QOPPolicy.cpp 77001 2007-02-12 07:54:49Z johnnyw $")
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 (void)
00026 {
00027   return ::Security::SecQOPPolicy;
00028 }
00029 
00030 CORBA::Policy_ptr
00031 TAO::Security::QOPPolicy::copy (void)
00032 {
00033   TAO::Security::QOPPolicy * policy = 0;
00034   ACE_NEW_THROW_EX (policy,
00035                     TAO::Security::QOPPolicy (this->qop_),
00036                     CORBA::NO_MEMORY (
00037                       CORBA::SystemException::_tao_minor_code (
00038                         TAO::VMCID,
00039                         ENOMEM),
00040                       CORBA::COMPLETED_NO));
00041 
00042   return policy;
00043 }
00044 
00045 void
00046 TAO::Security::QOPPolicy::destroy (void)
00047 {
00048 }
00049 
00050 Security::QOP
00051 TAO::Security::QOPPolicy::qop (void)
00052 {
00053   return this->qop_;
00054 }
00055 
00056 TAO_END_VERSIONED_NAMESPACE_DECL

Generated on Sun Jan 27 16:09:36 2008 for TAO_Security by doxygen 1.3.6