class JwtUpickle extends JwtUpickleParser[JwtHeader, JwtClaim]
- Alphabetic
- By Inheritance
- JwtUpickle
- JwtUpickleParser
- JwtUpickleImplicits
- JwtJsonCommon
- JwtCore
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- val clock: Clock
- Definition Classes
- JwtUpickle → JwtCore
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- def decode(token: String, key: PublicKey): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, key: PublicKey, options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decode(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decode(token: String, key: SecretKey): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, key: SecretKey, options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decode(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decode(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decode(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decode(token: String): Try[JwtClaim]
- Definition Classes
- JwtCore
- def decode(token: String, options: JwtOptions): Try[JwtClaim]
Same as
decodeAll
but only return the claimSame as
decodeAll
but only return the claim- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- returns
if successful, the claim of the token in its correct type
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: PublicKey): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: PublicKey, options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: SecretKey): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: SecretKey, options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeAll(token: String): Try[(JwtHeader, JwtClaim, String)]
- Definition Classes
- JwtCore
- def decodeAll(token: String, options: JwtOptions): Try[(JwtHeader, JwtClaim, String)]
Same as
decodeRawAll
but return the real header and claim typesSame as
decodeRawAll
but return the real header and claim types- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- returns
if successful, a tuple representing the header, the claim and eventually the signature
- Definition Classes
- JwtCore
- def decodeJson(token: String, key: PublicKey): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: PublicKey, options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: SecretKey): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: SecretKey, options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJson(token: String, options: JwtOptions): Try[Value]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: PublicKey): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: PublicKey, options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: SecretKey): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: SecretKey, options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeJsonAll(token: String, options: JwtOptions): Try[(Value, Value, String)]
- Definition Classes
- JwtJsonCommon
- def decodeRaw(token: String, key: PublicKey): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: PublicKey, options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: SecretKey): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: SecretKey, options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRaw(token: String): Try[String]
- Definition Classes
- JwtCore
- def decodeRaw(token: String, options: JwtOptions): Try[String]
Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)Same as
decodeRawAll
but only return the claim (you only care about the claim most of the time)- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- returns
if successful, a string representing the JSON version of the claim
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: PublicKey): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: PublicKey, options: JwtOptions): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[(String, String, String)]
Will try to decode a JSON Web Token to raw strings using an asymmetric algorithm
Will try to decode a JSON Web Token to raw strings using an asymmetric algorithm
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple of 3 strings, the header, the claim and the signature
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: SecretKey): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: SecretKey, options: JwtOptions): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[(String, String, String)]
Will try to decode a JSON Web Token to raw strings using a HMAC algorithm
Will try to decode a JSON Web Token to raw strings using a HMAC algorithm
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple of 3 strings, the header, the claim and the signature
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Try[(String, String, String)]
Will try to decode a JSON Web Token to raw strings using an asymmetric algorithm
Will try to decode a JSON Web Token to raw strings using an asymmetric algorithm
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple of 3 strings, the header, the claim and the signature
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Try[(String, String, String)]
Will try to decode a JSON Web Token to raw strings using a HMAC algorithm
Will try to decode a JSON Web Token to raw strings using a HMAC algorithm
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
if successful, a tuple of 3 strings, the header, the claim and the signature
- Definition Classes
- JwtCore
- def decodeRawAll(token: String): Try[(String, String, String)]
- Definition Classes
- JwtCore
- def decodeRawAll(token: String, options: JwtOptions): Try[(String, String, String)]
Will try to decode a JSON Web Token to raw strings
Will try to decode a JSON Web Token to raw strings
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- returns
if successful, a tuple of 3 strings, the header, the claim and the signature
- Definition Classes
- JwtCore
- def encode(claim: Value, key: PrivateKey, algorithm: JwtAsymmetricAlgorithm): String
- Definition Classes
- JwtJsonCommon
- def encode(claim: Value, key: SecretKey, algorithm: JwtHmacAlgorithm): String
- Definition Classes
- JwtJsonCommon
- def encode(claim: Value, key: String, algorithm: JwtAlgorithm): String
- Definition Classes
- JwtJsonCommon
- def encode(claim: Value): String
- Definition Classes
- JwtJsonCommon
- def encode(header: Value, claim: Value, key: Key): String
- Definition Classes
- JwtJsonCommon
- def encode(header: Value, claim: Value, key: String): String
- Definition Classes
- JwtJsonCommon
- def encode(header: Value, claim: Value): String
- Definition Classes
- JwtJsonCommon
- def encode(header: JwtHeader, claim: JwtClaim, key: Key): String
An alias of
encode
if you only want to pass a string as the key, the algorithm will be deduced from the header.An alias of
encode
if you only want to pass a string as the key, the algorithm will be deduced from the header.- header
the header to stringify as a JSON before encoding the token
- claim
the claim to stringify as a JSON before encoding the token
- key
the secret key to use to sign the token (note that the algorithm will be deduced from the header)
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(header: JwtHeader, claim: JwtClaim, key: String): String
An alias of
encode
if you only want to pass a string as the key, the algorithm will be deduced from the header.An alias of
encode
if you only want to pass a string as the key, the algorithm will be deduced from the header.- header
the header to stringify as a JSON before encoding the token
- claim
the claim to stringify as a JSON before encoding the token
- key
the secret key to use to sign the token (note that the algorithm will be deduced from the header)
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(header: JwtHeader, claim: JwtClaim): String
An alias to
encode
if you want to use case classes for the header and the claim rather than strings, they will just be stringified to JSON format.An alias to
encode
if you want to use case classes for the header and the claim rather than strings, they will just be stringified to JSON format.- header
the header to stringify as a JSON before encoding the token
- claim
the claim to stringify as a JSON before encoding the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: JwtClaim, key: PrivateKey, algorithm: JwtAsymmetricAlgorithm): String
An alias to
encode
which will provide an automatically generated header and use the claim as a case class.An alias to
encode
which will provide an automatically generated header and use the claim as a case class.- claim
the claim of the JSON Web Token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: JwtClaim, key: SecretKey, algorithm: JwtHmacAlgorithm): String
An alias to
encode
which will provide an automatically generated header and use the claim as a case class.An alias to
encode
which will provide an automatically generated header and use the claim as a case class.- claim
the claim of the JSON Web Token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: JwtClaim, key: String, algorithm: JwtAlgorithm): String
An alias to
encode
which will provide an automatically generated header and use the claim as a case class.An alias to
encode
which will provide an automatically generated header and use the claim as a case class.- claim
the claim of the JSON Web Token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: JwtClaim): String
An alias to
encode
which will provide an automatically generated header and setting both key and algorithm to None.An alias to
encode
which will provide an automatically generated header and setting both key and algorithm to None.- claim
the claim of the JSON Web Token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: String, key: PrivateKey, algorithm: JwtAsymmetricAlgorithm): String
An alias to
encode
which will provide an automatically generated header and allowing you to get rid of Option for the key and the algorithm.An alias to
encode
which will provide an automatically generated header and allowing you to get rid of Option for the key and the algorithm.- claim
a valid stringified JSON representing the claim of the token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: String, key: SecretKey, algorithm: JwtHmacAlgorithm): String
An alias to
encode
which will provide an automatically generated header and allowing you to get rid of Option for the key and the algorithm.An alias to
encode
which will provide an automatically generated header and allowing you to get rid of Option for the key and the algorithm.- claim
a valid stringified JSON representing the claim of the token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: String, key: String, algorithm: JwtAlgorithm): String
An alias to
encode
which will provide an automatically generated header and allowing you to get rid of Option for the key and the algorithm.An alias to
encode
which will provide an automatically generated header and allowing you to get rid of Option for the key and the algorithm.- claim
a valid stringified JSON representing the claim of the token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(claim: String): String
An alias to
encode
which will provide an automatically generated header.An alias to
encode
which will provide an automatically generated header.- claim
a valid stringified JSON representing the claim of the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(header: String, claim: String, key: PrivateKey, algorithm: JwtAsymmetricAlgorithm): String
- Definition Classes
- JwtCore
- def encode(header: String, claim: String, key: SecretKey, algorithm: JwtHmacAlgorithm): String
- Definition Classes
- JwtCore
- def encode(header: String, claim: String, key: String, algorithm: JwtAlgorithm): String
Encode a JSON Web Token from its different parts.
Encode a JSON Web Token from its different parts. Both the header and the claim will be encoded to Base64 url-safe, then a signature will be eventually generated from it if you did pass a key and an algorithm, and finally, those three parts will be merged as a single string, using dots as separator.
- header
a valid stringified JSON representing the header of the token
- claim
a valid stringified JSON representing the claim of the token
- key
the key that will be used to check the token signature
- algorithm
the algorithm to sign the token
- returns
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- def encode(header: String, claim: String): String
- Definition Classes
- JwtCore
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extractAlgorithm(header: JwtHeader): Option[JwtAlgorithm]
- Attributes
- protected
- Definition Classes
- JwtJsonCommon
- def extractExpiration(claim: JwtClaim): Option[Long]
- Attributes
- protected
- Definition Classes
- JwtJsonCommon
- def extractNotBefore(claim: JwtClaim): Option[Long]
- Attributes
- protected
- Definition Classes
- JwtJsonCommon
- def getAlgorithm(header: Value): Option[JwtAlgorithm]
- Attributes
- protected
- Definition Classes
- JwtUpickleParser → JwtJsonCommon
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isValid(token: String, key: PublicKey): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: PublicKey, options: JwtOptions): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Boolean
An alias for
isValid
if you want to directly pass a string as the keyAn alias for
isValid
if you want to directly pass a string as the key- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
a boolean value indicating if the token is valid or not
- Definition Classes
- JwtCore
- def isValid(token: String, key: SecretKey): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: SecretKey, options: JwtOptions): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Boolean
An alias for
isValid
if you want to directly pass a string as the keyAn alias for
isValid
if you want to directly pass a string as the key- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
a boolean value indicating if the token is valid or not
- Definition Classes
- JwtCore
- def isValid(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Boolean
An alias for
isValid
if you want to directly pass a string as the key for asymmetric algorithmsAn alias for
isValid
if you want to directly pass a string as the key for asymmetric algorithms- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
a boolean value indicating if the token is valid or not
- Definition Classes
- JwtCore
- def isValid(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Boolean
An alias for
isValid
if you want to directly pass a string as the key for HMAC algorithmsAn alias for
isValid
if you want to directly pass a string as the key for HMAC algorithms- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- returns
a boolean value indicating if the token is valid or not
- Definition Classes
- JwtCore
- def isValid(token: String): Boolean
- Definition Classes
- JwtCore
- def isValid(token: String, options: JwtOptions): Boolean
Test if a token is valid.
Test if a token is valid. Doesn't throw any exception.
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- returns
a boolean value indicating if the token is valid or not
- Definition Classes
- JwtCore
- implicit val jwtUpickleClaimReadWrite: upickle.default.ReadWriter[JwtClaim]
- Definition Classes
- JwtUpickleImplicits
- implicit val jwtUpickleHeaderReadWrite: upickle.default.ReadWriter[JwtHeader]
- Definition Classes
- JwtUpickleImplicits
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def parse(value: String): Value
- Attributes
- protected
- Definition Classes
- JwtUpickleParser → JwtJsonCommon
- def parseClaim(claim: String): JwtClaim
- Definition Classes
- JwtUpickle → JwtCore
- def parseHeader(header: String): JwtHeader
- Definition Classes
- JwtUpickle → JwtCore
- def stringify(value: Value): String
- Attributes
- protected
- Definition Classes
- JwtUpickleParser → JwtJsonCommon
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def validate(token: String, key: PublicKey): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: PublicKey, options: JwtOptions): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm]): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Unit
An alias of
validate
in case you want to directly pass a string key.An alias of
validate
in case you want to directly pass a string key.- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- Definition Classes
- JwtCore
- Exceptions thrown
IllegalArgumentException
couldn't decode the token since it's not a valid base64 stringJwtExpirationException
the token isn't valid anymore because itsexpiration
attribute is in the pastJwtLengthException
the number of parts separated by dots is wrongJwtNotBeforeException
the token isn't valid yet because itsnotBefore
attribute is in the futureJwtValidationException
default validation exception
- def validate(token: String, key: SecretKey): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: SecretKey, options: JwtOptions): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm]): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Unit
An alias of
validate
in case you want to directly pass a string key.An alias of
validate
in case you want to directly pass a string key.- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- Definition Classes
- JwtCore
- Exceptions thrown
IllegalArgumentException
couldn't decode the token since it's not a valid base64 stringJwtExpirationException
the token isn't valid anymore because itsexpiration
attribute is in the pastJwtLengthException
the number of parts separated by dots is wrongJwtNotBeforeException
the token isn't valid yet because itsnotBefore
attribute is in the futureJwtValidationException
default validation exception
- def validate(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm]): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Unit
An alias of
validate
in case you want to directly pass a string key for asymmetric algorithms.An alias of
validate
in case you want to directly pass a string key for asymmetric algorithms.- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- Definition Classes
- JwtCore
- Exceptions thrown
IllegalArgumentException
couldn't decode the token since it's not a valid base64 stringJwtExpirationException
the token isn't valid anymore because itsexpiration
attribute is in the pastJwtLengthException
the number of parts separated by dots is wrongJwtNotBeforeException
the token isn't valid yet because itsnotBefore
attribute is in the futureJwtValidationException
default validation exception
- def validate(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm]): Unit
- Definition Classes
- JwtCore
- def validate(token: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Unit
An alias of
validate
in case you want to directly pass a string key for HMAC algorithms.An alias of
validate
in case you want to directly pass a string key for HMAC algorithms.- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- key
the key that will be used to check the token signature
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- Definition Classes
- JwtCore
- Exceptions thrown
IllegalArgumentException
couldn't decode the token since it's not a valid base64 stringJwtExpirationException
the token isn't valid anymore because itsexpiration
attribute is in the pastJwtLengthException
the number of parts separated by dots is wrongJwtNotBeforeException
the token isn't valid yet because itsnotBefore
attribute is in the futureJwtValidationException
default validation exception
- def validate(token: String): Unit
- Definition Classes
- JwtCore
- def validate(token: String, options: JwtOptions): Unit
Valid a token: doesn't return anything but will thrown exceptions if there are any errors.
Valid a token: doesn't return anything but will thrown exceptions if there are any errors.
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Definition Classes
- JwtCore
- Exceptions thrown
IllegalArgumentException
couldn't decode the token since it's not a valid base64 stringJwtExpirationException
the token isn't valid anymore because itsexpiration
attribute is in the pastJwtLengthException
the number of parts separated by dots is wrongJwtNotBeforeException
the token isn't valid yet because itsnotBefore
attribute is in the futureJwtValidationException
default validation exception
- def validate(header64: String, header: JwtHeader, claim64: String, claim: JwtClaim, signature: String, key: PublicKey, algorithms: Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Unit
- Attributes
- protected
- Definition Classes
- JwtCore
- def validate(header64: String, header: JwtHeader, claim64: String, claim: JwtClaim, signature: String, key: SecretKey, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Unit
- Attributes
- protected
- Definition Classes
- JwtCore
- def validate(header64: String, header: JwtHeader, claim64: String, claim: JwtClaim, signature: String, key: String, algorithms: => Seq[JwtAsymmetricAlgorithm], options: JwtOptions): Unit
- Attributes
- protected
- Definition Classes
- JwtCore
- def validate(header64: String, header: JwtHeader, claim64: String, claim: JwtClaim, signature: String, key: String, algorithms: Seq[JwtHmacAlgorithm], options: JwtOptions): Unit
- Attributes
- protected
- Definition Classes
- JwtCore
- def validate(header64: String, header: JwtHeader, claim64: String, claim: JwtClaim, signature: String, options: JwtOptions, verify: (Array[Byte], Array[Byte], JwtAlgorithm) => Boolean): Unit
- Attributes
- protected
- Definition Classes
- JwtCore
- def validate(header: JwtHeader, claim: JwtClaim, signature: String, options: JwtOptions): Unit
- Attributes
- protected
- Definition Classes
- JwtCore
- def validateAsymmetricAlgorithm(algorithm: JwtAsymmetricAlgorithm, algorithms: Seq[JwtAsymmetricAlgorithm]): Boolean
- Attributes
- protected
- Definition Classes
- JwtCore
- def validateHmacAlgorithm(algorithm: JwtHmacAlgorithm, algorithms: Seq[JwtHmacAlgorithm]): Boolean
- Attributes
- protected
- Definition Classes
- JwtCore
- def validateTiming(claim: JwtClaim, options: JwtOptions): Try[Unit]
- Attributes
- protected
- Definition Classes
- JwtCore
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])