All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.oath.jwt.model.JwtClaims.scala Maven / Gradle / Ivy

The newest version!
package io.oath.jwt.model

sealed trait JwtClaims {
  val registered: RegisteredClaims
}

object JwtClaims {

  final case class Claims(registered: RegisteredClaims = RegisteredClaims.empty) extends JwtClaims

  final case class ClaimsH[+H](header: H, registered: RegisteredClaims = RegisteredClaims.empty) extends JwtClaims

  final case class ClaimsP[+P](payload: P, registered: RegisteredClaims = RegisteredClaims.empty) extends JwtClaims

  final case class ClaimsHP[+H, +P](header: H, payload: P, registered: RegisteredClaims = RegisteredClaims.empty)
      extends JwtClaims
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy