Package-level declarations

Properties

Link copied to clipboard

Returns the aud (audience) claim value as a set of strings.

Link copied to clipboard

Returns the aud (audience) claim value as a set of strings, or null if the claim is absent.

Link copied to clipboard

Returns the cty (content type) header value.

Link copied to clipboard

Returns the cty (content type) header value, or null if the header is absent.

Link copied to clipboard

Returns the enc (encryption algorithm) header value.

Link copied to clipboard

Returns the enc (encryption algorithm) header value, or null if the header is absent.

Link copied to clipboard

Returns the exp (expiration time) claim value as an Instant.

Link copied to clipboard

Returns the exp (expiration time) claim value as an Instant, or null if the claim is absent.

Link copied to clipboard

Returns the iat (issued at) claim value as an Instant.

Link copied to clipboard

Returns the iat (issued at) claim value as an Instant, or null if the claim is absent.

Link copied to clipboard

Returns the iss (issuer) claim value.

Link copied to clipboard

Returns the iss (issuer) claim value, or null if the claim is absent.

Link copied to clipboard

Returns the jti (JWT ID) claim value.

Link copied to clipboard

Returns the jti (JWT ID) claim value, or null if the claim is absent.

Link copied to clipboard

Returns the kid (key ID) header value.

Link copied to clipboard

Returns the kid (key ID) header value, or null if the header is absent.

Link copied to clipboard

Returns the nbf (not before) claim value as an Instant.

Link copied to clipboard

Returns the nbf (not before) claim value as an Instant, or null if the claim is absent.

Link copied to clipboard

Returns the sub (subject) claim value.

Link copied to clipboard

Returns the sub (subject) claim value, or null if the claim is absent.

Link copied to clipboard

Returns the typ (token type) header value.

Link copied to clipboard

Returns the typ (token type) header value, or null if the header is absent.

Functions

Link copied to clipboard
inline fun <T> JwtPayload.getClaim(name: String, jsonInstance: Json = Jwt.defaultJsonParser): T

Returns the value of the named claim, deserializing it to type T using a reified serializer.

Link copied to clipboard
inline fun <T> JwtPayload.getClaimOrNull(name: String, jsonInstance: Json = Jwt.defaultJsonParser): T?

Returns the value of the named claim deserialized to type T, or null if the claim is absent.

Link copied to clipboard
inline fun <T> JwtHeader.getHeader(name: String, jsonInstance: Json = Jwt.defaultJsonParser): T

Returns the value of the named header, deserializing it to type T using a reified serializer.

Link copied to clipboard
inline fun <T> JwtHeader.getHeaderOrNull(name: String, jsonInstance: Json = Jwt.defaultJsonParser): T?

Returns the value of the named header deserialized to type T, or null if the header is absent.

Link copied to clipboard

Merges this BaseJweProcessor with other, producing a combined JweProcessor that supports both encryption and decryption.

Merges this BaseJwsProcessor with other, producing a combined JwsProcessor that supports both signing and verification.