trait JwtSimple extends Object
jwt-simple - JWT(JSON Web Token) encode and decode module
- Annotations
- @RawJSType() @native()
- Version
0.5.0
- See also
- Alphabetic
- By Inheritance
- JwtSimple
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- 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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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.
jwt.decode(token, secret, true)
Example: -
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
jwt.decode(token, secret, true)
Example: -
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
jwt.decode(token, secret)
Example: -
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.
jwt.encode(payload, secret, "HS512")
Example: -
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
jwt.encode(payload, secret)
Example: -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
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
- @throws( ... )