TAO::Security::QOPPolicy Class Reference

Implementation of the SecurityLevel2::QOPPolicy interface. More...

#include <SL2_QOPPolicy.h>

Inheritance diagram for TAO::Security::QOPPolicy:

Inheritance graph
[legend]
Collaboration diagram for TAO::Security::QOPPolicy:

Collaboration graph
[legend]
List of all members.

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_

Detailed Description

Implementation of the SecurityLevel2::QOPPolicy interface.

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.

This policy can be created by using the CORBA::ORB::create_policy() method by passing it the Security::SecQOPPolicy policy type, and the appropriate Security::QOP enumeration (inserted into a CORBA::Any).

Definition at line 51 of file SL2_QOPPolicy.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO::Security::QOPPolicy::QOPPolicy ::Security::QOP  qop  ) 
 

Constructor.

Definition at line 15 of file SL2_QOPPolicy.cpp.

00016   : qop_ (qop)
00017 {
00018 }

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.

00021 {
00022 }


Member Function Documentation

CORBA::Policy_ptr TAO::Security::QOPPolicy::copy void   )  [virtual]
 

Implements CORBA::Policy.

Definition at line 31 of file SL2_QOPPolicy.cpp.

References ACE_NEW_THROW_EX.

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]
 

Implements CORBA::Policy.

Definition at line 46 of file SL2_QOPPolicy.cpp.

00047 {
00048 }

CORBA::PolicyType TAO::Security::QOPPolicy::policy_type void   )  [virtual]
 

Implements CORBA::Policy.

Definition at line 25 of file SL2_QOPPolicy.cpp.

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 }


Member Data Documentation

::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().


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 16:10:46 2008 for TAO_Security by doxygen 1.3.6