JwtClaimsSet

class JwtClaimsSet(val iss: String? = null, val sub: String? = null, val aud: String? = null, val exp: Long? = null, val nbf: Long? = null, val iat: Long? = null, val jti: String? = null, val misc: Map<String, Any> = emptyMap())

Claims represents JWT (JSON Web Token) Claims Spec: https://datatracker.ietf.org/doc/html/rfc7519#section-4

Constructors

Link copied to clipboard
constructor(iss: String? = null, sub: String? = null, aud: String? = null, exp: Long? = null, nbf: Long? = null, iat: Long? = null, jti: String? = null, misc: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
class Builder

Builder for JwtClaimsSet.

Properties

Link copied to clipboard
val aud: String? = null

the recipients that the JWT is intended for.

Link copied to clipboard
val exp: Long? = null

the expiration time on or after which the JWT must not be accepted for processing.

Link copied to clipboard
val iat: Long? = null

the time at which the JWT was issued.

Link copied to clipboard
val iss: String? = null

identifies the principal that issued the

Link copied to clipboard
val jti: String? = null

provides a unique identifier for the JWT.

Link copied to clipboard

additional claims (i.e. VerifiableCredential, VerifiablePresentation)

Link copied to clipboard
val nbf: Long? = null

the time before which the JWT must not be accepted for processing.

Link copied to clipboard
val sub: String? = null

the principal that is the subject of the JWT.

Functions

Link copied to clipboard
open override fun toString(): String