Packages

trait JwtSimple extends Object

jwt-simple - JWT(JSON Web Token) encode and decode module

Annotations
@RawJSType() @native()
Version

0.5.0

See also

https://www.npmjs.com/package/jwt-simple

Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JwtSimple
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def decode(token: JwtToken, secret: String, skipVerification: Boolean, algorithm: Algorithm): Any

    Decodes the token using the specified secret and algorithm

    Decodes the token using the specified secret and algorithm

    token

    the given token to decode

    secret

    the given secret

    skipVerification

    if true, decode without verify the signature of the token

    algorithm

    The supported algorithms for encoding and decoding are HS256, HS384, HS512 and RS256.

    Example:
    1. jwt.decode(token, secret, true)

  7. def decode(token: JwtToken, secret: String, skipVerification: Boolean): Any

    Decodes the token using the specified secret and algorithm

    Decodes the token using the specified secret and algorithm

    token

    the given token to decode

    secret

    the given secret

    skipVerification

    if true, decode without verify the signature of the token

    Example:
    1. jwt.decode(token, secret, true)

  8. def decode(token: JwtToken, secret: String): Any

    Decodes the token using the specified secret

    Decodes the token using the specified secret

    token

    the given token to decode

    secret

    the given secret

    Example:
    1. jwt.decode(token, secret)

  9. def encode(payload: Any, secret: String, algorithm: Algorithm): JwtToken

    Encodes the payload using the specified secret and algorithm

    Encodes the payload using the specified secret and algorithm

    payload

    the given payload to encode

    secret

    the given secret

    algorithm

    The supported algorithms for encoding and decoding are HS256, HS384, HS512 and RS256.

    Example:
    1. jwt.encode(payload, secret, "HS512")

  10. def encode(payload: Any, secret: String): JwtToken

    Encodes the payload using the specified secret

    Encodes the payload using the specified secret

    payload

    the given payload to encode

    secret

    the given secret

    Example:
    1. jwt.encode(payload, secret)

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  15. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. def toLocaleString(): String
    Definition Classes
    Object
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def valueOf(): Any
    Definition Classes
    Object
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped