class Credential
Defined at line 2906 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
Describes a LoWPAN credential.
Currently only supports a symmetric network key,
but may be extended in the future to support other
types of credentials, such as passwords, PAKE
secrets, or a reference to a certificate/private-key
pair.
Public Members
static const fidl_type_t * FidlType
Public Methods
void Credential ()
void ~Credential ()
void Credential (Credential && )
Credential & operator= (Credential && )
Credential WithNetworkKey (::std::vector<uint8_t> && )
::std::unique_ptr<Credential> New ()
void Encode (::fidl::Encoder * encoder, size_t offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Credential * value, size_t offset)
zx_status_t Clone (Credential * result)
bool has_invalid_tag ()
Defined at line 2932 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
bool is_network_key ()
Defined at line 2936 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
::std::vector<uint8_t> & network_key ()
Describes a symmetric key credential.
The size of the symmetric key is defined by the
underlying network technology. For Thread this
is a 16-byte value.
Note that this value is not a password.
Defined at line 2945 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
const ::std::vector<uint8_t> & network_key ()
Describes a symmetric key credential.
The size of the symmetric key is defined by the
underlying network technology. For Thread this
is a 16-byte value.
Note that this value is not a password.
Defined at line 2957 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
Credential & set_network_key (::std::vector<uint8_t> value)
Credential & SetUnknownData (fidl_xunion_tag_t ordinal, std::vector<uint8_t> bytes)
::fuchsia::lowpan::device::Credential::Tag Which ()
Defined at line 2964 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
fidl_xunion_tag_t Ordinal ()
You probably want to use Which() method instead of Ordinal(). Use Ordinal() only when you need
access to the raw integral ordinal value.
Defined at line 2978 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
const std::vector<uint8_t> * UnknownBytes ()
Defined at line 2981 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
Enumerations
enum Tag
| Name | Value |
|---|---|
| kUnknown | 0 |
| kNetworkKey | 1 |
| Invalid | ::std::numeric_limits<::fidl_union_tag_t>::max() |
Defined at line 2918 of file fidling/gen/sdk/fidl/fuchsia.lowpan.device/fuchsia.lowpan.device/hlcpp/fuchsia/lowpan/device/cpp/fidl.h
Friends
class Equality