TAO_Security  2.0.8
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes
TAO::Security::AccessDecision Class Reference

#include <SL2_SecurityManager.h>

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

List of all members.

Classes

struct  ReferenceKeyType

Public Member Functions

 AccessDecision ()
 ~AccessDecision (void)
virtual ::CORBA::Boolean access_allowed (const ::SecurityLevel2::CredentialsList &cred_list,::CORBA::Object_ptr target, const char *operation_name, const char *target_interface_name)
virtual ::CORBA::Boolean access_allowed_ex (const char *orb_id, const ::CORBA::OctetSeq &adapter_id, const ::CORBA::OctetSeq &object_id, const ::SecurityLevel2::CredentialsList &cred_list, const char *operation_name)
virtual ::CORBA::Boolean default_decision (void)
virtual void default_decision (::CORBA::Boolean d)
virtual void add_object (const char *orbid, const ::CORBA::OctetSeq &adapter_id, const ::CORBA::OctetSeq &object_id,::CORBA::Boolean allow_insecure_access)
virtual void remove_object (const char *orbid, const ::CORBA::OctetSeq &adapter_id, const ::CORBA::OctetSeq &object_id)

Private Types

typedef ReferenceKeyType OBJECT_KEY
typedef
ACE_Hash_Map_Manager_Ex
< OBJECT_KEY, CORBA::Boolean,
ACE_Hash< OBJECT_KEY >
, ACE_Equal_To< OBJECT_KEY >
, ACE_Null_Mutex
ACCESS_MAP_TYPE

Private Member Functions

OBJECT_KEY map_key_from_objref (CORBA::Object_ptr obj)
 Encapsulates a TAO-specific way to do object_to_string() without having an ORB reference handy.
::CORBA::Boolean access_allowed_i (OBJECT_KEY &key, const char *operation_name)

Private Attributes

::CORBA::Boolean default_allowance_decision_
ACCESS_MAP_TYPE access_map_
TAO_SYNCH_MUTEX map_lock_

Member Typedef Documentation


Constructor & Destructor Documentation

TAO::Security::AccessDecision::AccessDecision ( )

Constructor

TAO::Security::AccessDecision::~AccessDecision ( void  )

Member Function Documentation

CORBA::Boolean TAO::Security::AccessDecision::access_allowed ( const ::SecurityLevel2::CredentialsList cred_list,
::CORBA::Object_ptr  target,
const char *  operation_name,
const char *  target_interface_name 
)
CORBA::Boolean TAO::Security::AccessDecision::access_allowed_ex ( const char *  orb_id,
const ::CORBA::OctetSeq adapter_id,
const ::CORBA::OctetSeq object_id,
const ::SecurityLevel2::CredentialsList cred_list,
const char *  operation_name 
)
CORBA::Boolean TAO::Security::AccessDecision::access_allowed_i ( OBJECT_KEY key,
const char *  operation_name 
) [private]
virtual void TAO::Security::AccessDecision::add_object ( const char *  orbid,
const ::CORBA::OctetSeq adapter_id,
const ::CORBA::OctetSeq object_id,
::CORBA::Boolean  allow_insecure_access 
) [virtual]
CORBA::Boolean TAO::Security::AccessDecision::default_decision ( void  )
virtual void TAO::Security::AccessDecision::default_decision ( ::CORBA::Boolean  d) [virtual]
TAO::Security::AccessDecision::OBJECT_KEY TAO::Security::AccessDecision::map_key_from_objref ( CORBA::Object_ptr  obj) [private]

Encapsulates a TAO-specific way to do object_to_string() without having an ORB reference handy.

Note:
If OBJECT_KEY changes as described above, this should change so that it generates an OBJECT_KEY.
void TAO::Security::AccessDecision::remove_object ( const char *  orbid,
const ::CORBA::OctetSeq adapter_id,
const ::CORBA::OctetSeq object_id 
) [virtual]

Member Data Documentation

This is the default value that's returned from access_allowed() when the access table doesn't contain an entry for the reference.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines