TAO_Security  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
TAO::Security::AccessDecision Class Reference

#include <SL2_SecurityManager.h>

Inheritance diagram for TAO::Security::AccessDecision:
Inheritance graph
Collaboration diagram for TAO::Security::AccessDecision:
Collaboration graph

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)
 
- Public Member Functions inherited from TAO::SL2::AccessDecision
boolean access_allowed_ex (in::CORBA::ORBid orb_id, in::CORBA::OctetSeq adapter_id, in::CORBA::OctetSeq object_id, in::SecurityLevel2::CredentialsList cred_list, in::CORBA::Identifier operation_name)
 
void add_object (in::CORBA::ORBid orb_id, in::CORBA::OctetSeq adapter_id, in::CORBA::OctetSeq object_id, in boolean allow_insecure_access)
 
void remove_object (in::CORBA::ORBid orb_id, in::CORBA::OctetSeq adapter_id, in::CORBA::OctetSeq object_id)
 
- Public Member Functions inherited from SecurityLevel2::AccessDecision
boolean access_allowed (in SecurityLevel2::CredentialsList cred_list, in Object target, in CORBA::Identifier operation_name, in CORBA::Identifier target_interface_name)
 

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. More...
 
::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_
 

Additional Inherited Members

- Public Types inherited from CORBA::LocalObject
typedef Object_ptr _ptr_type
 
typedef Object_var _var_type
 
typedef Object_out _out_type
 
- Static Public Member Functions inherited from CORBA::LocalObject
static CORBA::Boolean marshal (const Object_ptr x, TAO_OutputCDR &cdr)
 
static void _tao_any_destructor (void *)
 
static CORBA::Boolean is_nil_i (CORBA::Object_ptr obj)
 
static void tao_object_initialize (Object *)
 
static CORBA::Object_ptr _duplicate (CORBA::Object_ptr obj)
 
static CORBA::Object_ptr _nil (void)
 
static CORBA::Object_ptr _narrow (CORBA::Object_ptr obj)
 
- Public Attributes inherited from TAO::SL2::AccessDecision
attribute boolean default_decision
 
- Protected Member Functions inherited from CORBA::LocalObject
 Object (int dummy=0)
 
TAO::Object_Proxy_Brokerproxy_broker () const
 

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

ACCESS_MAP_TYPE TAO::Security::AccessDecision::access_map_
private
::CORBA::Boolean TAO::Security::AccessDecision::default_allowance_decision_
private

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

TAO_SYNCH_MUTEX TAO::Security::AccessDecision::map_lock_
private

The documentation for this class was generated from the following files: