class WeaveFabricState
Defined at line 485 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveFabricState.h
Forward declaration of WeaveFabricState
Public Members
WeaveMessageLayer * MessageLayer
uint64_t FabricId
uint64_t LocalNodeId
const char * PairingCode
uint16_t DefaultSubnet
uint8_t State
nl::Weave::Profiles::Security::AppKeys::GroupKeyStoreBase * GroupKeyStore
IPAddress ListenIPv4Addr
IPAddress ListenIPv6Addr
BoundConnectionClosedForSessionFunct BoundConnectionClosedForSession
Public Methods
void WeaveFabricState ()
WEAVE_ERROR Init ()
WEAVE_ERROR Init (nl::Weave::Profiles::Security::AppKeys::GroupKeyStoreBase * groupKeyStore)
WEAVE_ERROR Shutdown ()
WEAVE_ERROR AllocSessionKey (uint64_t peerNodeId, uint16_t keyId, WeaveConnection * boundCon, WeaveSessionKey *& sessionKey)
WEAVE_ERROR SetSessionKey (uint16_t keyId, uint64_t peerNodeId, uint8_t encType, WeaveAuthMode authMode, const WeaveEncryptionKey * encKey)
WEAVE_ERROR SetSessionKey (WeaveSessionKey * sessionKey, uint8_t encType, WeaveAuthMode authMode, const WeaveEncryptionKey * encKey)
WEAVE_ERROR GetSessionKey (uint16_t keyId, uint64_t peerNodeId, WeaveSessionKey *& outSessionKey)
WEAVE_ERROR FindSessionKey (uint16_t keyId, uint64_t peerNodeId, bool create, WeaveSessionKey *& retRec)
WEAVE_ERROR RemoveSessionKey (uint16_t keyId, uint64_t peerNodeId)
void RemoveSessionKey (WeaveSessionKey * sessionKey, bool wasIdle)
bool RemoveIdleSessionKeys ()
WeaveSessionKey * FindSharedSession (uint64_t terminatingNodeId, WeaveAuthMode authMode, uint8_t encType)
bool IsSharedSession (uint16_t keyId, uint64_t peerNodeId)
WEAVE_ERROR AddSharedSessionEndNode (uint64_t endNodeId, uint64_t terminatingNodeId, uint16_t keyId)
WEAVE_ERROR AddSharedSessionEndNode (WeaveSessionKey * sessionKey, uint64_t endNodeId)
WEAVE_ERROR GetSharedSessionEndNodeIds (const WeaveSessionKey * sessionKey, uint64_t * endNodeIds, uint8_t endNodeIdsBufSize, uint8_t & endNodeIdsCount)
void RemoveSharedSessionEndNodes (const WeaveSessionKey * sessionKey)
WEAVE_ERROR SuspendSession (uint16_t keyId, uint64_t peerNodeId, uint8_t * buf, uint16_t bufSize, uint16_t & serializedSessionLen)
WEAVE_ERROR RestoreSession (uint8_t * serializedSession, uint16_t serializedSessionLen, WeaveConnection * con)
WEAVE_ERROR GetSessionState (uint64_t remoteNodeId, uint16_t keyId, uint8_t encType, WeaveConnection * con, WeaveSessionState & outSessionState)
IPAddress SelectNodeAddress (uint64_t nodeId, uint16_t subnet)
IPAddress SelectNodeAddress (uint64_t nodeId)
bool IsFabricAddress (const IPAddress & addr)
bool IsLocalFabricAddress (const IPAddress & addr)
WEAVE_ERROR GetPassword (uint8_t pwSrc, const char *& ps, uint16_t & pwLen)
WEAVE_ERROR CreateFabric ()
void ClearFabricState ()
WEAVE_ERROR GetFabricState (uint8_t * buf, uint32_t bufSize, uint32_t & fabricStateLen)
WEAVE_ERROR JoinExistingFabric (const uint8_t * fabricState, uint32_t fabricStateLen)
void HandleConnectionClosed (WeaveConnection * con)
void SetDelegate (FabricStateDelegate * aDelegate)
This method sets the delegate object.
The callback methods of delegate are invoked whenever the FabricId is changed,
i.e., when we join/create a fabric, or when we leave a fabric (clear fabric state)
If the delegate is previously set, then a second call to this method will overwrite
the previous delegate.
Parameters
void OnMsgCounterSyncRespRcvd (uint64_t peerNodeId, uint32_t peerMsgId, uint32_t requestorMsgCounter)
void OnMsgCounterSyncReqSent (uint32_t messageId)
bool IsMsgCounterSyncReqInProgress ()
This method returns true if at least one peer's message counter
synchronization request is in progress.
Defined at line 679 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveFabricState.h
WEAVE_ERROR GetMsgEncKeyIdForAppGroup (uint32_t appGroupGlobalId, uint32_t rootKeyId, bool useRotatingKey, uint32_t & keyId)
WEAVE_ERROR CheckMsgEncForAppGroup (const WeaveMessageInfo * msgInfo, uint32_t appGroupGlobalId, uint32_t rootKeyId, bool requireRotatingKey)
WEAVE_ERROR RegisterSessionEndCallback (SessionEndCbCtxt * sessionEndCb)
Enumerations
enum State
| Name | Value |
|---|---|
| kState_NotInitialized | 0 |
| kState_Initialized | 1 |
Defined at line 495 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Core/WeaveFabricState.h