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_tpeerNodeId,uint16_tkeyId,WeaveConnection *boundCon,WeaveSessionKey *&sessionKey)
WEAVE_ERROR SetSessionKey (uint16_tkeyId,uint64_tpeerNodeId,uint8_tencType,WeaveAuthModeauthMode,const WeaveEncryptionKey *encKey)
WEAVE_ERROR SetSessionKey (WeaveSessionKey *sessionKey,uint8_tencType,WeaveAuthModeauthMode,const WeaveEncryptionKey *encKey)
WEAVE_ERROR GetSessionKey (uint16_tkeyId,uint64_tpeerNodeId,WeaveSessionKey *&outSessionKey)
WEAVE_ERROR FindSessionKey (uint16_tkeyId,uint64_tpeerNodeId,boolcreate,WeaveSessionKey *&retRec)
WEAVE_ERROR RemoveSessionKey (uint16_t keyId, uint64_t peerNodeId)
void RemoveSessionKey (WeaveSessionKey * sessionKey, bool wasIdle)
bool RemoveIdleSessionKeys ()
WeaveSessionKey * FindSharedSession (uint64_tterminatingNodeId,WeaveAuthModeauthMode,uint8_tencType)
bool IsSharedSession (uint16_t keyId, uint64_t peerNodeId)
WEAVE_ERROR AddSharedSessionEndNode (uint64_tendNodeId,uint64_tterminatingNodeId,uint16_tkeyId)
WEAVE_ERROR AddSharedSessionEndNode (WeaveSessionKey * sessionKey, uint64_t endNodeId)
WEAVE_ERROR GetSharedSessionEndNodeIds (const WeaveSessionKey *sessionKey,uint64_t *endNodeIds,uint8_tendNodeIdsBufSize,uint8_t &endNodeIdsCount)
void RemoveSharedSessionEndNodes (const WeaveSessionKey * sessionKey)
WEAVE_ERROR SuspendSession (uint16_tkeyId,uint64_tpeerNodeId,uint8_t *buf,uint16_tbufSize,uint16_t &serializedSessionLen)
WEAVE_ERROR RestoreSession (uint8_t *serializedSession,uint16_tserializedSessionLen,WeaveConnection *con)
WEAVE_ERROR GetSessionState (uint64_tremoteNodeId,uint16_tkeyId,uint8_tencType,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_tpwSrc,const char *&ps,uint16_t &pwLen)
WEAVE_ERROR CreateFabric ()
void ClearFabricState ()
WEAVE_ERROR GetFabricState (uint8_t *buf,uint32_tbufSize,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_tpeerNodeId,uint32_tpeerMsgId,uint32_trequestorMsgCounter)
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_tappGroupGlobalId,uint32_trootKeyId,booluseRotatingKey,uint32_t &keyId)
WEAVE_ERROR CheckMsgEncForAppGroup (const WeaveMessageInfo *msgInfo,uint32_tappGroupGlobalId,uint32_trootKeyId,boolrequireRotatingKey)
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