IncorrectClaimException

class IncorrectClaimException(val claimName: String, val expected: Any?, val actual: Any?) : JwtException(source)

Thrown when a claim is present in the token but its value does not match the expected value.

Constructors

Link copied to clipboard
constructor(claimName: String, expected: Any?, actual: Any?)

Properties

Link copied to clipboard
val actual: Any?

The actual value found in the token for this claim.

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

The name of the claim whose value did not match.

Link copied to clipboard

The expected value that the claim should have had.

Link copied to clipboard
expect open val message: String?