#include <SL3_CredentialsCurator.h>
Inheritance diagram for TAO::SL3::CredentialsCurator:
Public Types | |
typedef CredentialsCurator_ptr | _ptr_type |
typedef CredentialsCurator_var | _var_type |
typedef CredentialsCurator_out | _out_type |
typedef ACE_Map_Manager< const char *, TAO::SL3::CredentialsAcquirerFactory *, ACE_Null_Mutex > | Acquirer_Factory_Table |
typedef Acquirer_Factory_Table::iterator | Factory_Iterator |
typedef ACE_Hash_Map_Manager_Ex< const char *, SecurityLevel3::OwnCredentials_var, ACE_Hash< const char * >, ACE_Equal_To< const char * >, ACE_Null_Mutex > | Credentials_Table |
typedef Credentials_Table::iterator | Credentials_Iterator |
Public Member Functions | |
CredentialsCurator (void) | |
Constructor. | |
void | register_acquirer_factory (const char *acquisition_method, TAO::SL3::CredentialsAcquirerFactory *factory) |
Register CredentialsAcquirer factory. | |
void | _tao_add_own_credentials (SecurityLevel3::OwnCredentials_ptr credentials) |
SecurityLevel3::CredentialsCurator Methods | |
Methods required by the SecurityLevel3::CredentialsCurator interface. | |
virtual SecurityLevel3::AcquisitionMethodList * | supported_methods () throw (CORBA::SystemException) |
virtual SecurityLevel3::CredentialsAcquirer_ptr | acquire_credentials (const char *acquisition_method, const CORBA::Any &acquisition_arguments) throw (CORBA::SystemException) |
virtual SecurityLevel3::OwnCredentialsList * | default_creds_list () throw (CORBA::SystemException) |
virtual SecurityLevel3::CredentialsIdList * | default_creds_ids () throw (CORBA::SystemException) |
virtual SecurityLevel3::OwnCredentials_ptr | get_own_credentials (const char *credentials_id) throw (CORBA::SystemException) |
virtual void | release_own_credentials (const char *credentials_id) throw (CORBA::SystemException) |
Static Public Member Functions | |
CredentialsCurator_ptr | _duplicate (CredentialsCurator_ptr obj) |
CredentialsCurator_ptr | _nil (void) |
CredentialsCurator_ptr | _narrow (CORBA::Object_ptr obj) |
Protected Member Functions | |
~CredentialsCurator (void) | |
Destructor. | |
Private Attributes | |
TAO_SYNCH_MUTEX | lock_ |
Lock used to synchronize access to underlying tables. | |
Acquirer_Factory_Table | acquirer_factories_ |
Table of CredentialsAcquirer factories. | |
Credentials_Table | credentials_table_ |
Table of OwnCredentials. |
This class provides a means for creating and managing OwnCredentials.
Definition at line 60 of file SL3_CredentialsCurator.h.
|
Reimplemented from CORBA::LocalObject. Definition at line 67 of file SL3_CredentialsCurator.h. |
|
Reimplemented from CORBA::LocalObject. Definition at line 65 of file SL3_CredentialsCurator.h. |
|
Reimplemented from CORBA::LocalObject. Definition at line 66 of file SL3_CredentialsCurator.h. |
|
The type of table that maps acquisition method to acquirer factory. Definition at line 75 of file SL3_CredentialsCurator.h. |
|
Definition at line 83 of file SL3_CredentialsCurator.h. Referenced by ~CredentialsCurator(). |
|
Definition at line 82 of file SL3_CredentialsCurator.h. |
|
Definition at line 76 of file SL3_CredentialsCurator.h. Referenced by ~CredentialsCurator(). |
|
Constructor.
Definition at line 21 of file SL3_CredentialsCurator.cpp.
00022 : lock_ (), 00023 acquirer_factories_ (), 00024 credentials_table_ (TAO::SL3::CREDENTIALS_TABLE_SIZE) 00025 { 00026 } |
|
|
Definition at line 56 of file SL3_CredentialsCurator.cpp. References TAO_Local_RefCounted_Object::_add_ref(), TAO::SL3::CredentialsCurator_ptr, and CORBA::is_nil(). Referenced by _narrow().
00057 { 00058 if (!CORBA::is_nil (obj)) 00059 obj->_add_ref (); 00060 00061 return obj; 00062 } |
|
Reimplemented from CORBA::LocalObject. Definition at line 65 of file SL3_CredentialsCurator.cpp. References _duplicate().
00067 { 00068 return TAO::SL3::CredentialsCurator::_duplicate ( 00069 dynamic_cast<TAO::SL3::CredentialsCurator *> (obj)); 00070 } |
|
Reimplemented from CORBA::LocalObject. Definition at line 73 of file SL3_CredentialsCurator.cpp.
00074 { 00075 return (CredentialsCurator *) 0; 00076 } |
|
TAO-specific means of adding credentials to this CredentialsCurator's "own credentials" list. Definition at line 263 of file SL3_CredentialsCurator.cpp. References ACE_CHECK, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_THROW, ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, HASH_KEY, COMPARE_KEYS, ACE_LOCK >::bind(), and credentials_table_.
00266 { 00267 CORBA::String_var credentials_id = 00268 credentials->creds_id (ACE_ENV_SINGLE_ARG_PARAMETER); 00269 ACE_CHECK; 00270 00271 SecurityLevel3::OwnCredentials_var creds = 00272 SecurityLevel3::OwnCredentials::_duplicate (credentials); 00273 00274 if (this->credentials_table_.bind (credentials_id.in (), 00275 creds) != 0) 00276 { 00277 ACE_THROW (CORBA::NO_RESOURCES ()); 00278 } 00279 00280 // CredentialsCurator nows owns the id. 00281 (void) credentials_id._retn (); 00282 } |
|
|
|
|
|
|
|
|
|
Register CredentialsAcquirer factory.
|
|
|
|
|
|
Table of CredentialsAcquirer factories.
Definition at line 159 of file SL3_CredentialsCurator.h. Referenced by ~CredentialsCurator(). |
|
Table of OwnCredentials.
Definition at line 162 of file SL3_CredentialsCurator.h. Referenced by _tao_add_own_credentials(), and ~CredentialsCurator(). |
|
Lock used to synchronize access to underlying tables.
Definition at line 156 of file SL3_CredentialsCurator.h. |