hashed

suspend fun Jwk.Thumbprint.hashed(jsonInstance: Json = Jwt.defaultJsonParser, cryptoProvider: CryptographyProvider = CryptographyProvider.Default): String(source)

Computes the base64url-encoded SHA-256 hash of this JWK Thumbprint as defined by RFC 7638.

Return

the base64url-encoded SHA-256 digest of the canonical JSON representation of this thumbprint

Parameters

jsonInstance

the Json instance used to serialize the thumbprint to its canonical form; defaults to the library's Jwt.defaultJsonParser configuration

cryptoProvider

the CryptographyProvider used to compute the SHA-256 hash; defaults to CryptographyProvider.Default