Matter::SessionManager
Inherits Reference < Object
SessionManager manages secure communication sessions
Matter uses two types of sessions:
- PASE (Password-Authenticated Session Establishment): Used during commissioning
- CASE (Certificate-Authenticated Session Establishment): Used for operational communication
During failsafe rollback, PASE sessions must be cleared to prevent unauthorized access if commissioning fails.
Matter Core Spec ยง4.13 - Secure Channel Protocol
Constants
Log = ::Log.for("matter.session_manager")
Constructors
new
SourceInstance methods
clear_pase_sessions
Clear all PASE sessions
This is called during failsafe rollback to remove all PASE sessions established during commissioning. This ensures that if commissioning fails, the temporary authenticated sessions are removed.
create_case_session(session_id : UInt16, fabric_index : UInt8, peer_node_id : UInt64, vendor_id : UInt16 = 65521_u16) : CaseSession
Create a new CASE session
get_fabric_sessions(fabric_index : UInt8) : Array(CaseSession)
Get all CASE sessions for a specific fabric
remove_fabric_sessions(fabric_index : UInt8) : Int32
Remove all CASE sessions for a specific fabric