CloudAuthentication

data class CloudAuthentication(val token: String, val tokenSource: CloudAuthentication.TokenSource, val cloudTokenCoapType: Int?, val payloadSignatureCoapType: Int?)

Represents cloud authentication features like cloud token, its configuration, CoAP options to send cloud token and ECDSA payload signature.

Parameters

token

cloud token used by the sensor for identification in Cloud when TokenSource.CUSTOM mode is selected

tokenSource

to which sensor will send the data

cloudTokenCoapType

id of CoAP option to send cloud token or null if should be sent in the payload

payloadSignatureCoapType

id of CoAP option to send ECDSA payload signature or null if payload signature should not be sent

Constructors

Link copied to clipboard
constructor(token: String, tokenSource: CloudAuthentication.TokenSource, cloudTokenCoapType: Int?, payloadSignatureCoapType: Int?)

Types

Link copied to clipboard

Represents source of cloud token

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard