class WeaveTAKEChallengerAuthDelegate

Defined at line 123 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/security/WeaveTAKE.h

Abstract delegate class called by TAKE engine to perform various

actions related to authentication during a TAKE exchange.

Public Methods

WEAVE_ERROR RewindIdentificationKeyIterator ()

Rewind Identification Key Iterator.

Called to prepare for a new Identification Key search.

WEAVE_ERROR GetNextIdentificationKey (uint64_t & tokenId, uint8_t * identificationKey, uint16_t & identificationKeyLen)

Get next {tokenId, IK} pair.

returns tokenId = kNodeIdNotSpecified if no more IKs are available.

WEAVE_ERROR GetTokenAuthData (uint64_t tokenId, uint8_t & takeConfig, uint8_t * authKey, uint16_t & authKeyLen, uint8_t * encAuthBlob, uint16_t & encAuthBlobLen)

Get Token Authentication Data.

Function returns {takeConfig = 0x00, authKey = NULL, encAuthBlob = NULL} if Authentication Data associated with a specified Token

is not stored on the device.

On the function call authKeyLen and encAuthBlobLen inputs specify sizes of the authKey and encAuthBlob buffers, respectively.

Function should update these parameters to reflect actual sizes.

WEAVE_ERROR StoreTokenAuthData (uint64_t tokenId, uint8_t takeConfig, const uint8_t * authKey, uint16_t authKeyLen, const uint8_t * encAuthBlob, uint16_t encAuthBlobLen)

Store Token Authentication Data.

This function should clear Authentication Data that was previously stored on the device for the specified Token (if any).

WEAVE_ERROR ClearTokenAuthData (uint64_t tokenId)

Clear Token Authentication Data.

This function should be called if ReAuthentication phase with the Token Authentication Data stored on the device failed.

WEAVE_ERROR GetTokenPublicKey (uint64_t tokenId, OID & curveOID, EncodedECPublicKey & tokenPubKey)

Get Token public key.

On the function call tokenPubKey length input specifies size of the tokenPubKey buffer. Function should update this parameter to reflect actual sizes.

WEAVE_ERROR GetChallengerID (uint8_t * challengerID, uint8_t & challengerIDLen)

Get the challenger ID.