TAO::Security::AccessDecision::ReferenceKeyType Struct Reference

List of all members.

Public Member Functions

bool operator== (const ReferenceKeyType &other) const
CORBA::ULong hash () const
 operator const char * () const

Public Attributes

PortableServer::ObjectId_var oid_
CORBA::OctetSeq_var adapter_id_
CORBA::String_var orbid_

Detailed Description

Map containing references and their designated insecure access.

Definition at line 108 of file SL2_SecurityManager.h.


Member Function Documentation

CORBA::ULong TAO::Security::AccessDecision::ReferenceKeyType::hash  )  const
 

Definition at line 118 of file SL2_SecurityManager.cpp.

00119 {
00120   return 0;
00121 }

TAO::Security::AccessDecision::ReferenceKeyType::operator const char *  )  const
 

Definition at line 123 of file SL2_SecurityManager.cpp.

00124 {
00125   return "<hardcoded refkey>";
00126 }

bool TAO::Security::AccessDecision::ReferenceKeyType::operator== const ReferenceKeyType other  )  const
 

Definition at line 102 of file SL2_SecurityManager.cpp.

References ACE_OS::memcmp().

00103 {
00104   ::CORBA::ULong olen = this->oid_->length();
00105   ::CORBA::ULong alen = this->adapter_id_->length();
00106 
00107   if (olen == other.oid_->length() &&
00108       alen == other.adapter_id_->length())
00109     return (ACE_OS::memcmp (this->oid_->get_buffer(),
00110                             other.oid_->get_buffer(),olen) == 0 &&
00111             ACE_OS::memcmp (this->adapter_id_->get_buffer(),
00112                             other.adapter_id_->get_buffer(),alen) == 0 &&
00113             ACE_OS_String::strcmp (this->orbid_.in(), other.orbid_.in()) == 0);
00114   return false;
00115 }


Member Data Documentation

CORBA::OctetSeq_var TAO::Security::AccessDecision::ReferenceKeyType::adapter_id_
 

Definition at line 111 of file SL2_SecurityManager.h.

Referenced by TAO::Security::AccessDecision::access_allowed_ex(), TAO::Security::AccessDecision::add_object(), and TAO::Security::AccessDecision::remove_object().

PortableServer::ObjectId_var TAO::Security::AccessDecision::ReferenceKeyType::oid_
 

Definition at line 110 of file SL2_SecurityManager.h.

Referenced by TAO::Security::AccessDecision::access_allowed_ex(), TAO::Security::AccessDecision::add_object(), and TAO::Security::AccessDecision::remove_object().

CORBA::String_var TAO::Security::AccessDecision::ReferenceKeyType::orbid_
 

Definition at line 112 of file SL2_SecurityManager.h.

Referenced by TAO::Security::AccessDecision::access_allowed_ex(), TAO::Security::AccessDecision::add_object(), and TAO::Security::AccessDecision::remove_object().


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