#include <SL2_QOPPolicy.h>
Inheritance diagram for TAO::Security::QOPPolicy:
Public Member Functions | |
QOPPolicy (::Security::QOP qop) | |
Constructor. | |
virtual ::Security::QOP | qop (void) |
CORBA::Policy Methods | |
virtual CORBA::PolicyType | policy_type (void) |
virtual CORBA::Policy_ptr | copy (void) |
virtual void | destroy (void) |
Protected Member Functions | |
~QOPPolicy (void) | |
Destructor. | |
Private Attributes | |
::Security::QOP const | qop_ |
This policy can be used to affect the quality of protection (QoP) for invocation on a per-object basis. For example, it can be set as a policy override using the standard CORBA::Object::_set_policy_overrides() method.
Definition at line 51 of file SL2_QOPPolicy.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::Security::QOPPolicy::QOPPolicy | ( | ::Security::QOP | qop | ) |
TAO::Security::QOPPolicy::~QOPPolicy | ( | void | ) | [protected] |
Destructor.
Protected destructor to enforce proper memory management through the reference counting mechansim.
Definition at line 20 of file SL2_QOPPolicy.cpp.
CORBA::Policy_ptr TAO::Security::QOPPolicy::copy | ( | void | ) | [virtual] |
Reimplemented from CORBA::Policy.
Definition at line 31 of file SL2_QOPPolicy.cpp.
References CORBA::SystemException::_tao_minor_code(), ACE_NEW_THROW_EX, CORBA::COMPLETED_NO, and TAO::VMCID.
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 }
void TAO::Security::QOPPolicy::destroy | ( | void | ) | [virtual] |
CORBA::PolicyType TAO::Security::QOPPolicy::policy_type | ( | void | ) | [virtual] |
Reimplemented from CORBA::Policy.
Definition at line 25 of file SL2_QOPPolicy.cpp.
References Security::SecQOPPolicy.
00026 { 00027 return ::Security::SecQOPPolicy; 00028 }
Security::QOP TAO::Security::QOPPolicy::qop | ( | void | ) |
Return the Quality-of-Protection value associated with this policy.
Definition at line 51 of file SL2_QOPPolicy.cpp.
References qop_.
00052 { 00053 return this->qop_; 00054 }
::Security::QOP const TAO::Security::QOPPolicy::qop_ [private] |
Quality of protection which can be specified for an object reference and used to protect messages.
Definition at line 88 of file SL2_QOPPolicy.h.
Referenced by qop().