Object/Class

pdi.jwt

JwtSession

Related Docs: class JwtSession | package jwt

Permalink

object JwtSession extends JwtJsonImplicits with JwtPlayImplicits with Serializable

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

Type Members

  1. implicit class RichJwtClaim extends AnyRef

    Permalink
    Definition Classes
    JwtJsonImplicits
  2. implicit class RichJwtHeader extends AnyRef

    Permalink
    Definition Classes
    JwtJsonImplicits
  3. implicit class RichRequestHeader extends AnyRef

    Permalink

    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

    Permalink

    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 play.api._
    import play.api.mvc._
    import pdi.jwt._
    
    object Application extends Controller {
      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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val ALGORITHM: JwtHmacAlgorithm

    Permalink
  5. val MAX_AGE: Option[Long]

    Permalink
  6. val REQUEST_HEADER_NAME: String

    Permalink
  7. val RESPONSE_HEADER_NAME: String

    Permalink
  8. val TOKEN_PREFIX: String

    Permalink
  9. def apply(header: JwtHeader, claim: JwtClaim, signature: String): JwtSession

    Permalink
  10. def apply(header: JwtHeader, claim: JwtClaim): JwtSession

    Permalink
  11. def apply(claim: JwtClaim): JwtSession

    Permalink
  12. def apply(jsHeader: JsObject, jsClaim: JsObject): JwtSession

    Permalink
  13. def apply(fields: (String, JsValueWrapper)*): JwtSession

    Permalink
  14. def apply(jsClaim: JsObject): JwtSession

    Permalink
  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  17. def defaultClaim: JwtClaim

    Permalink
  18. def defaultHeader: JwtHeader

    Permalink
  19. def deserialize(token: String): JwtSession

    Permalink
  20. def deserialize(token: String, options: JwtOptions): JwtSession

    Permalink
  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  24. val getConfigMillis: (String) ⇒ Option[Long]

    Permalink
  25. val getConfigString: (String) ⇒ Option[String]

    Permalink
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. implicit val jwtPlayJsonClaimReader: Reads[JwtClaim]

    Permalink
    Definition Classes
    JwtJsonImplicits
  29. implicit val jwtPlayJsonClaimWriter: Writes[JwtClaim]

    Permalink
    Definition Classes
    JwtJsonImplicits
  30. implicit val jwtPlayJsonHeaderReader: Reads[JwtHeader]

    Permalink
    Definition Classes
    JwtJsonImplicits
  31. implicit val jwtPlayJsonHeaderWriter: Writes[JwtHeader]

    Permalink
    Definition Classes
    JwtJsonImplicits
  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  35. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  36. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. def wrap[T](getter: (String) ⇒ Option[T]): (String) ⇒ Option[T]

    Permalink

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Serializable

Inherited from JwtPlayImplicits

Inherited from JwtJsonImplicits

Inherited from AnyRef

Inherited from Any

Ungrouped