sealed abstract case class JWTClaims extends Product with Serializable
Represents the JWT Claims in https://tools.ietf.org/html/rfc7519#section-4
Times are IEEE Std 1003.1, 2013 Edition time in seconds. They are represented
in a java.time.Instant objects. At serialization time, they are
represented as Long
.
Note: When feeding Instant
instances directly, milliseconds are discarded
- Self Type
- JWTClaims
- Source
- JWTClaims.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JWTClaims
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def as[A](implicit arg0: Decoder[A]): Result[A]
- def asF[F[_], A](implicit arg0: Decoder[A], F: Sync[F]): F[A]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val audience: Option[JWTAudience]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expiration: Option[Instant]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getCustom[A](key: String)(implicit arg0: Decoder[A]): Result[A]
- def getCustomF[F[_], A](key: String)(implicit arg0: Decoder[A], F: Sync[F]): F[A]
- def isAfterNBF(now: Instant): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNotExpired(now: Instant): Boolean
- def isValidIssued(now: Instant): Boolean
- val issuedAt: Option[Instant]
- val issuer: Option[String]
- val jwtId: Option[String]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val notBefore: Option[Instant]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val subject: Option[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def withCustomField[A](key: String, value: A)(implicit e: Encoder[A]): Either[InvalidField, JWTClaims]
- def withCustomFieldF[F[_], A](key: String, value: A)(implicit F: Sync[F], e: Encoder[A]): F[JWTClaims]
- def withExpiry(duration: Instant): JWTClaims
- def withIAT(duration: Instant): JWTClaims
- def withIATOption(duration: Option[Instant]): JWTClaims
- def withIssuer(isr: String): JWTClaims
- def withJwtID(jwtId: String): JWTClaims
- def withNBF(duration: Instant): JWTClaims
- def withSubject(subj: String): JWTClaims