DefaultDeviceSecretValidator

Default DeviceSecretValidator that validates the ds_hash claim in an ID token against the SHA-256 left-half hash of the device secret.

Validation is skipped if the ds_hash claim is absent from the ID token. Only the RS256 algorithm is supported.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun validate(deviceSecret: String, idToken: Jwt)

Validates the deviceSecret against the ds_hash claim in the idToken.