class
Matter::FabricManager
- Matter::FabricManager
- Reference
- Object
Overview
FabricManager provides high-level fabric management operations
This class wraps FabricTable and adds additional functionality needed for commissioning operations, including:
- Fabric removal for failsafe rollback
- NOC restoration for UpdateNOC rollback
- Fabric lifecycle management
Matter Core Spec ยง11.17 - Operational Credentials Cluster
Defined in:
matter/fabric_manager.crConstant Summary
-
Log =
::Log.for("matter.fabric_manager")
Constructors
Instance Method Summary
-
#add_fabric(fabric : Fabric) : Bool
Add a new fabric
-
#all_fabrics : Array(Fabric)
Get all fabrics
-
#empty? : Bool
Check if table is empty
-
#fabric_descriptors : Array(FabricDescriptor)
Get fabric descriptors for Operational Credentials cluster
-
#fabric_table : FabricTable
Underlying fabric table
-
#fabric_table=(fabric_table : FabricTable)
Underlying fabric table
-
#full? : Bool
Check if table is full
-
#get_fabric(fabric_index : UInt8) : Fabric | Nil
Get a fabric by index
-
#mark_fabric_used(fabric_index : UInt8) : Bool
Mark a fabric as recently used
-
#remove_fabric(fabric_index : UInt8) : Bool
Remove a fabric by fabric index
-
#restore_noc(fabric_index : UInt8, operational_cert : Bytes, operational_key_bytes : Bytes) : Bool
Restore NOC (operational certificate and key) for a fabric
-
#size : Int32
Get fabric count
-
#update_fabric(fabric : Fabric) : Bool
Update an existing fabric
Constructor Detail
Instance Method Detail
Get fabric descriptors for Operational Credentials cluster
Remove a fabric by fabric index
This is used during failsafe rollback to remove fabrics added during the commissioning session.
@param fabric_index Fabric index to remove (1-254) @return True if fabric was removed, false if not found
Restore NOC (operational certificate and key) for a fabric
This is used during failsafe rollback to revert UpdateNOC changes. The method restores the previous operational certificate and private key for a fabric that was updated during commissioning.
@param fabric_index Fabric index to restore @param operational_cert Previous operational certificate (TLV-encoded) @param operational_key_bytes Previous operational private key bytes @return True if NOC was restored, false if fabric not found