OpenDDS
Snapshot(2023/04/07-19:43)
|
Implements some simple wrapper functions to provide a const API around the Token data structure as specified in the DDS security specification. More...
#include <TokenReader.h>
Public Member Functions | |
TokenReader (const DDS::Security::Token &token_ref) | |
virtual | ~TokenReader () |
bool | is_nil () const |
const char * | get_property_value (const std::string &property_name) const |
const DDS::OctetSeq & | get_bin_property_value (const std::string &property_name) const |
CORBA::ULong | get_num_properties () const |
CORBA::ULong | get_num_bin_properties () const |
Private Attributes | |
const DDS::Security::Token & | token_ref_ |
const DDS::OctetSeq | _empty_seq_ |
Implements some simple wrapper functions to provide a const API around the Token data structure as specified in the DDS security specification.
See the DDS security specification, OMG formal/17-09-20, for a description of the interface this class is implementing.
Definition at line 40 of file TokenReader.h.
|
explicit |
Definition at line 32 of file TokenReader.cpp.
|
virtual |
Definition at line 38 of file TokenReader.cpp.
const DDS::OctetSeq & OpenDDS::Security::TokenReader::get_bin_property_value | ( | const std::string & | property_name | ) | const |
Definition at line 59 of file TokenReader.cpp.
References _empty_seq_, DDS::Security::DataHolder::binary_properties, OpenDDS::DCPS::const_sequence_begin(), OpenDDS::DCPS::const_sequence_end(), OPENDDS_END_VERSIONED_NAMESPACE_DECL, and token_ref_.
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_reply(), OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_request(), OpenDDS::Security::AuthenticationBuiltInImpl::process_final_handshake(), OpenDDS::Security::AuthenticationBuiltInImpl::process_handshake_reply(), and OpenDDS::Security::AccessControlBuiltInImpl::validate_remote_permissions().
|
inline |
Definition at line 70 of file TokenReader.h.
References OPENDDS_END_VERSIONED_NAMESPACE_DECL.
|
inline |
Definition at line 65 of file TokenReader.h.
const char * OpenDDS::Security::TokenReader::get_property_value | ( | const std::string & | property_name | ) | const |
Definition at line 42 of file TokenReader.cpp.
References OpenDDS::DCPS::const_sequence_begin(), OpenDDS::DCPS::const_sequence_end(), DDS::Security::DataHolder::properties, and token_ref_.
Referenced by OpenDDS::Security::LocalAuthCredentialData::load_access_permissions(), and OpenDDS::Security::AccessControlBuiltInImpl::validate_local_permissions().
|
inline |
Definition at line 58 of file TokenReader.h.
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_reply(), OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_request(), OpenDDS::Security::AuthenticationBuiltInImpl::process_final_handshake(), OpenDDS::Security::AuthenticationBuiltInImpl::process_handshake_reply(), and OpenDDS::Security::AuthenticationBuiltInImpl::validate_remote_identity().
|
private |
Definition at line 55 of file TokenReader.h.
Referenced by get_bin_property_value().
|
private |
Definition at line 54 of file TokenReader.h.
Referenced by get_bin_property_value(), and get_property_value().