struct

Matter::Cluster::Definitions::OperationalCredentials::FabricDescriptor

Inherits TLV::Serializable < Struct < Value < Object

This structure encodes a Fabric Reference for a fabric within which a given Node is currently commissioned.

Constructors

new(root_public_key : Slice(UInt8), vendor_id : UInt16, fabric_id : UInt64, node_id : UInt64, label : String, fabric_index : UInt8)
Source
new(any : TLV::Any)
Source

Class methods

from_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian)
Source
from_slice(bytes : Bytes)
Source
from_tlv(any : TLV::Any)
Source
from_tlv(data : Bytes)
Source

Instance methods

fabric_id

This field shall contain the FabricID allocated to the fabric referenced by FabricIndex.

Source
fabric_id=(fabric_id : UInt64)

This field shall contain the FabricID allocated to the fabric referenced by FabricIndex.

Source
fabric_index
Source
fabric_index=(fabric_index : UInt8)
Source
label

This field shall contain a commissioner-set label for the fabric referenced by FabricIndex. This label is set by the UpdateFabricLabel command.

Source
label=(label : String)

This field shall contain a commissioner-set label for the fabric referenced by FabricIndex. This label is set by the UpdateFabricLabel command.

Source
node_id

This field shall contain the NodeID in use within the fabric referenced by FabricIndex.

Source
node_id=(node_id : UInt64)

This field shall contain the NodeID in use within the fabric referenced by FabricIndex.

Source
root_public_key

This field shall contain the public key for the trusted root that scopes the fabric referenced by FabricIndex and its associated operational credential (see Section 6.4.5.3, "Trusted Root CA Certificates"). The format for the key shall be the same as that used in the ec-pub-key field of the Matter Certificate Encoding for the root in the operational certificate chain.

Source
root_public_key=(root_public_key : Slice(UInt8))

This field shall contain the public key for the trusted root that scopes the fabric referenced by FabricIndex and its associated operational credential (see Section 6.4.5.3, "Trusted Root CA Certificates"). The format for the key shall be the same as that used in the ec-pub-key field of the Matter Certificate Encoding for the root in the operational certificate chain.

Source
to_io(io : IO, format : IO::ByteFormat = IO::ByteFormat::LittleEndian) : Nil
Source
to_slice
Source
to_tlv(outer_tag : Nil | UInt8 | Tuple(UInt16, UInt16) | Tuple(UInt16, UInt16, UInt16) = nil) : TLV::Any
Source
vendor_id

This field shall contain the value of AdminVendorID provided in the AddNOC command that led to the creation of this FabricDescriptorStruct.

Source
vendor_id=(vendor_id : UInt16)

This field shall contain the value of AdminVendorID provided in the AddNOC command that led to the creation of this FabricDescriptorStruct.

Source