OpenDDS
Snapshot(2023/04/28-20:55)
|
Implements some simple wrapper functions to provide a non-const API around the Token data structure as specified in the DDS security specification. More...
#include <TokenWriter.h>
Public Member Functions | |
TokenWriter (DDS::Security::Token &token_ref) | |
TokenWriter (DDS::Security::Token &token_ref, const std::string &class_id) | |
virtual | ~TokenWriter () |
const TokenReader & | get_reader () |
void | set_class_id (const std::string &class_name) |
void | add_property (const char *prop_name, const char *prop_value, bool propagate=true) |
void | add_property (const char *prop_name, const DDS::OctetSeq &prop_value, bool propagate=true) |
void | add_bin_property (const char *prop_name, const DDS::OctetSeq &prop_value, bool propagate=true) |
void | add_bin_property (const char *prop_name, const std::string &prop_value, bool propagate=true) |
Private Attributes | |
DCPS::SequenceBackInsertIterator< DDS::BinaryPropertySeq > | binary_property_inserter_ |
DCPS::SequenceBackInsertIterator< DDS::PropertySeq > | property_inserter_ |
DDS::Security::Token & | token_ref_ |
OpenDDS::Security::TokenReader | reader_ |
Implements some simple wrapper functions to provide a non-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 43 of file TokenWriter.h.
|
explicit |
Definition at line 16 of file TokenWriter.cpp.
OpenDDS::Security::TokenWriter::TokenWriter | ( | DDS::Security::Token & | token_ref, |
const std::string & | class_id | ||
) |
Definition at line 25 of file TokenWriter.cpp.
References DDS::Security::DataHolder::class_id.
|
virtual |
Definition at line 34 of file TokenWriter.cpp.
void OpenDDS::Security::TokenWriter::add_bin_property | ( | const char * | prop_name, |
const DDS::OctetSeq & | prop_value, | ||
bool | propagate = true |
||
) |
Definition at line 59 of file TokenWriter.cpp.
References binary_property_inserter_, DDS::BinaryProperty_t::name, DDS::BinaryProperty_t::propagate, and DDS::BinaryProperty_t::value.
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_reply(), OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_request(), OpenDDS::Security::AuthenticationBuiltInImpl::process_handshake_reply(), and OpenDDS::Security::AuthenticationBuiltInImpl::validate_remote_identity().
void OpenDDS::Security::TokenWriter::add_bin_property | ( | const char * | prop_name, |
const std::string & | prop_value, | ||
bool | propagate = true |
||
) |
Definition at line 68 of file TokenWriter.cpp.
References binary_property_inserter_, DDS::BinaryProperty_t::name, OPENDDS_END_VERSIONED_NAMESPACE_DECL, DDS::BinaryProperty_t::propagate, and DDS::BinaryProperty_t::value.
void OpenDDS::Security::TokenWriter::add_property | ( | const char * | prop_name, |
const char * | prop_value, | ||
bool | propagate = true |
||
) |
Definition at line 38 of file TokenWriter.cpp.
References DDS::Property_t::name, DDS::Property_t::propagate, property_inserter_, and DDS::Property_t::value.
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::get_identity_token(), and OpenDDS::Security::AccessControlBuiltInImpl::validate_local_permissions().
void OpenDDS::Security::TokenWriter::add_property | ( | const char * | prop_name, |
const DDS::OctetSeq & | prop_value, | ||
bool | propagate = true |
||
) |
Definition at line 47 of file TokenWriter.cpp.
References DDS::Property_t::name, DDS::Property_t::propagate, property_inserter_, and DDS::Property_t::value.
|
inline |
Definition at line 67 of file TokenWriter.h.
|
inline |
Definition at line 72 of file TokenWriter.h.
References OPENDDS_END_VERSIONED_NAMESPACE_DECL.
|
private |
Definition at line 61 of file TokenWriter.h.
Referenced by add_bin_property().
|
private |
Definition at line 62 of file TokenWriter.h.
Referenced by add_property().
|
private |
Definition at line 64 of file TokenWriter.h.
|
private |
Definition at line 63 of file TokenWriter.h.