class WeaveSecurityManager
Defined at line 182 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
Public Members
WeaveFabricState * FabricState
WeaveExchangeManager * ExchangeManager
uint8_t State
uint32_t InitiatorCASEConfig
uint32_t InitiatorCASECurveId
uint8_t InitiatorAllowedCASEConfigs
uint8_t InitiatorAllowedCASECurves
uint8_t ResponderAllowedCASEConfigs
uint8_t ResponderAllowedCASECurves
uint8_t InitiatorKeyExportConfig
uint8_t InitiatorAllowedKeyExportConfigs
uint8_t ResponderAllowedKeyExportConfigs
uint32_t SessionEstablishTimeout
uint32_t IdleSessionTimeout
SessionEstablishedFunct OnSessionEstablished
SessionErrorFunct OnSessionError
KeyErrorMsgRcvdFunct OnKeyErrorMsgRcvd
Public Methods
void WeaveSecurityManager ()
WEAVE_ERROR Init (WeaveExchangeManager & aExchangeMgr, System::Layer & aSystemLayer)
void SetCASEAuthDelegate (WeaveCASEAuthDelegate * delegate)
Defined at line 308 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
void SetTAKEAuthDelegate (WeaveTAKEChallengerAuthDelegate * delegate)
Defined at line 315 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
void SetTAKETokenAuthDelegate (WeaveTAKETokenAuthDelegate * delegate)
Defined at line 322 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
void SetKeyExportDelegate (WeaveKeyExportDelegate * delegate)
Defined at line 329 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h
WEAVE_ERROR Shutdown ()
WEAVE_ERROR StartPASESession (WeaveConnection *con,WeaveAuthModerequestedAuthMode,void *reqState,SessionEstablishedFunctonComplete,SessionErrorFunctonError,const uint8_t *pw,uint16_tpwLen)
Initiate a secure PASE session, optionally providing a password.
Session establishment is done over connection that was specified.
WEAVE_ERROR StartCASESession (WeaveConnection *con,uint64_tpeerNodeId,const IPAddress &peerAddr,uint16_tpeerPort,WeaveAuthModerequestedAuthMode,void *reqState,SessionEstablishedFunctonComplete,SessionErrorFunctonError,WeaveCASEAuthDelegate *authDelegate,uint64_tterminatingNodeId)
Initiate a secure CASE session, optionally providing a CASE auth delegate.
Session establishment is done over specified connection or over UDP using WRM Protocol.
WEAVE_ERROR StartTAKESession (WeaveConnection *con,WeaveAuthModerequestedAuthMode,void *reqState,SessionEstablishedFunctonComplete,SessionErrorFunctonError,boolencryptAuthPhase,boolencryptCommPhase,booltimeLimitedIK,boolsendChallengerId,WeaveTAKEChallengerAuthDelegate *authDelegate)
Initiate a secure TAKE session, optionally providing a TAKE auth delegate.
Session establishment is done over connection that was specified.
WEAVE_ERROR StartKeyExport (WeaveConnection *con,uint64_tpeerNodeId,const IPAddress &peerAddr,uint16_tpeerPort,uint32_tkeyId,boolsignMessage,void *reqState,KeyExportCompleteFunctonComplete,KeyExportErrorFunctonError,WeaveKeyExportDelegate *keyExportDelegate)
Initiate key export protocol.
bool IsKeyError (WEAVE_ERROR err)
Determine whether Weave error code is a key error.
WEAVE_ERROR SendKeyErrorMsg (WeaveMessageInfo *rcvdMsgInfo,const IPPacketInfo *rcvdMsgPacketInfo,WeaveConnection *con,WEAVE_ERRORkeyErr)
Send key error message when correct key has not been found and the message cannot be decrypted.
void OnEncryptedMsgRcvd (uint16_tsessionKeyId,uint64_tpeerNodeId,uint8_tencType)
WEAVE_ERROR SendMsgCounterSyncResp (const WeaveMessageInfo * rcvdMsgInfo, const IPPacketInfo * rcvdMsgPacketInfo)
Send message counter synchronization message.
WEAVE_ERROR SendSolitaryMsgCounterSyncReq (const WeaveMessageInfo * rcvdMsgInfo, const IPPacketInfo * rcvdMsgPacketInfo)
Send peer message counter synchronization request.
void HandleMsgCounterSyncRespMsg (WeaveMessageInfo * msgInfo, PacketBuffer * msgBuf)
Handle message counter synchronization response message.
WEAVE_ERROR CancelSessionEstablishment (void * reqState)
void ReserveKey (uint64_t peerNodeId, uint16_t keyId)
void ReleaseKey (uint64_t peerNodeId, uint16_t keyId)
Enumerations
enum State
| Name | Value |
|---|---|
| kState_NotInitialized | 0 |
| kState_Idle | 1 |
| kState_CASEInProgress | 2 |
| kState_PASEInProgress | 3 |
| kState_TAKEInProgress | 4 |
| kState_KeyExportInProgress | 5 |
Defined at line 185 of file gen/third_party/openweave-core/src/include/Weave/Core/WeaveSecurityMgr.h