object JwtSession extends JwtJsonImplicits with JwtPlayImplicits with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JwtSession
  2. Serializable
  3. JwtPlayImplicits
  4. JwtJsonImplicits
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. implicit class RichJwtClaim extends AnyRef
    Definition Classes
    JwtJsonImplicits
  2. implicit class RichJwtHeader extends AnyRef
    Definition Classes
    JwtJsonImplicits
  3. implicit class RichRequestHeader extends AnyRef

    By adding import pdi.jwt.*, you will implicitely add this method to RequestHeader allowing you to easily retrieve the JwtSession inside your Play application.

    By adding import pdi.jwt.*, you will implicitely add this method to RequestHeader allowing you to easily retrieve the JwtSession inside your Play application.

    package controllers
    
    import play.api.*
    import play.api.mvc.*
    import pdi.jwt.*
    
    object Application extends Controller {
      def index = Action { request =>
        val session: JwtSession = request.jwtSession
      }
    }
    Definition Classes
    JwtPlayImplicits
  4. implicit class RichResult extends AnyRef

    By adding import pdi.jwt.*, you will implicitely add all those methods to Result allowing you to easily manipulate the JwtSession inside your Play application.

    By adding import pdi.jwt.*, you will implicitely add all those methods to Result allowing you to easily manipulate the JwtSession inside your Play application.

    package controllers
    
    import java.time.Clock
    import play.api.*
    import play.api.mvc.*
    import pdi.jwt.*
    
    object Application extends Controller {
      implicit val clock: Clock = Clock.systemUTC
    
      def login = Action { implicit request =>
        Ok.addingToJwtSession(("logged", true))
      }
    
      def logout = Action { implicit request =>
        Ok.withoutJwtSession
      }
    }
    Definition Classes
    JwtPlayImplicits

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def ALGORITHM(implicit conf: Configuration): JwtAlgorithm
  5. def MAX_AGE(implicit conf: Configuration): Option[Long]
  6. def REQUEST_HEADER_NAME(implicit conf: Configuration): String
  7. def RESPONSE_HEADER_NAME(implicit conf: Configuration): String
  8. def TOKEN_PREFIX(implicit conf: Configuration): String
  9. def apply(header: JwtHeader, claim: JwtClaim, signature: String)(implicit conf: Configuration, clock: Clock): JwtSession
  10. def apply(header: JwtHeader, claim: JwtClaim)(implicit conf: Configuration, clock: Clock): JwtSession
  11. def apply(claim: JwtClaim)(implicit conf: Configuration, clock: Clock): JwtSession
  12. def apply(jsHeader: JsObject, jsClaim: JsObject)(implicit conf: Configuration, clock: Clock): JwtSession
  13. def apply(fields: (String, JsValueWrapper)*)(implicit conf: Configuration, clock: Clock): JwtSession
  14. def apply(jsClaim: JsObject)(implicit conf: Configuration, clock: Clock): JwtSession
  15. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  17. def defaultClaim(implicit conf: Configuration, clock: Clock): JwtClaim
  18. def defaultHeader(implicit conf: Configuration): JwtHeader
  19. def deserialize(token: String)(implicit conf: Configuration, clock: Clock): JwtSession
  20. def deserialize(token: String, options: JwtOptions)(implicit conf: Configuration, clock: Clock): JwtSession
  21. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  23. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  24. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. implicit val jwtPlayJsonClaimReader: Reads[JwtClaim]
    Definition Classes
    JwtJsonImplicits
  27. implicit val jwtPlayJsonClaimWriter: Writes[JwtClaim]
    Definition Classes
    JwtJsonImplicits
  28. implicit val jwtPlayJsonHeaderReader: Reads[JwtHeader]
    Definition Classes
    JwtJsonImplicits
  29. implicit val jwtPlayJsonHeaderWriter: Writes[JwtHeader]
    Definition Classes
    JwtJsonImplicits
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  33. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from JwtPlayImplicits

Inherited from JwtJsonImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped