JwtUpickleParser
Implementation of JwtCore
using Js.Value
from uPickle.
To see a full list of samples, check the online documentation.
Attributes
- Graph
- Supertypes
- Known subtypes
- class JwtUpickleobject JwtUpickle.type
Members list
Value members
Concrete methods
Inherited methods
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Same as decodeAll
but only return the claim
Same as decodeAll
but only return the claim
Attributes
- 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
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Same as decodeRawAll
but return the real header and claim types
Same as decodeRawAll
but return the real header and claim types
Attributes
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
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)
Attributes
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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)
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
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)
Attributes
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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)
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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)
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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)
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
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)
Attributes
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Will try to decode a JSON Web Token to raw strings
Will try to decode a JSON Web Token to raw strings
Attributes
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtJsonCommon
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.
Attributes
- claim
the claim to stringify as a JSON before encoding the token
- header
the header 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
- Inherited from:
- JwtCore
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.
Attributes
- claim
the claim to stringify as a JSON before encoding the token
- header
the header 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
- Inherited from:
- JwtCore
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.
Attributes
- claim
the claim to stringify as a JSON before encoding the token
- header
the header 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
- Inherited from:
- JwtCore
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.
Attributes
- algorithm
the algorithm to sign the token
- claim
the claim of the JSON Web Token
- key
the key that will be used to check the token signature
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
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.
Attributes
- algorithm
the algorithm to sign the token
- claim
the claim of the JSON Web Token
- key
the key that will be used to check the token signature
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
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.
Attributes
- algorithm
the algorithm to sign the token
- claim
the claim of the JSON Web Token
- key
the key that will be used to check the token signature
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
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.
Attributes
- 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
- Inherited from:
- JwtCore
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.
Attributes
- algorithm
the algorithm to sign 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
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
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.
Attributes
- algorithm
the algorithm to sign 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
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
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.
Attributes
- algorithm
the algorithm to sign 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
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
An alias to encode
which will provide an automatically generated header.
An alias to encode
which will provide an automatically generated header.
Attributes
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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.
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.
Attributes
- algorithm
the algorithm to sign the token
- claim
a valid stringified JSON representing the claim of the token
- header
a valid stringified JSON representing the header of the token
- key
the key that will be used to check the token signature
- Returns:
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtJsonCommon
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
An alias for isValid
if you want to directly pass a string as the key
An alias for isValid
if you want to directly pass a string as the key
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
An alias for isValid
if you want to directly pass a string as the key
An alias for isValid
if you want to directly pass a string as the key
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
An alias for isValid
if you want to directly pass a string as the key for asymmetric
algorithms
An alias for isValid
if you want to directly pass a string as the key for asymmetric
algorithms
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
An alias for isValid
if you want to directly pass a string as the key for HMAC algorithms
An alias for isValid
if you want to directly pass a string as the key for HMAC algorithms
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- 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
- Inherited from:
- JwtCore
Test if a token is valid. Doesn't throw any exception.
Test if a token is valid. Doesn't throw any exception.
Attributes
- 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
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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.
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Throws:
- IllegalArgumentException
couldn't decode the token since it's not a valid base64 string
JwtExpirationExceptionthe token isn't valid anymore because its
expiration
attribute is in the pastJwtLengthExceptionthe number of parts separated by dots is wrong
JwtNotBeforeExceptionthe token isn't valid yet because its
notBefore
attribute is in the futureJwtValidationExceptiondefault validation exception
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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.
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Throws:
- IllegalArgumentException
couldn't decode the token since it's not a valid base64 string
JwtExpirationExceptionthe token isn't valid anymore because its
expiration
attribute is in the pastJwtLengthExceptionthe number of parts separated by dots is wrong
JwtNotBeforeExceptionthe token isn't valid yet because its
notBefore
attribute is in the futureJwtValidationExceptiondefault validation exception
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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.
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Throws:
- IllegalArgumentException
couldn't decode the token since it's not a valid base64 string
JwtExpirationExceptionthe token isn't valid anymore because its
expiration
attribute is in the pastJwtLengthExceptionthe number of parts separated by dots is wrong
JwtNotBeforeExceptionthe token isn't valid yet because its
notBefore
attribute is in the futureJwtValidationExceptiondefault validation exception
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
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.
Attributes
- algorithms
a list of possible algorithms that the token can use. See Security concerns for more infos.
- key
the key that will be used to check the token signature
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Throws:
- IllegalArgumentException
couldn't decode the token since it's not a valid base64 string
JwtExpirationExceptionthe token isn't valid anymore because its
expiration
attribute is in the pastJwtLengthExceptionthe number of parts separated by dots is wrong
JwtNotBeforeExceptionthe token isn't valid yet because its
notBefore
attribute is in the futureJwtValidationExceptiondefault validation exception
- Inherited from:
- JwtCore
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.
Attributes
- token
a JSON Web Token as a Base64 url-safe encoded String which can be used inside an HTTP header
- Throws:
- IllegalArgumentException
couldn't decode the token since it's not a valid base64 string
JwtExpirationExceptionthe token isn't valid anymore because its
expiration
attribute is in the pastJwtLengthExceptionthe number of parts separated by dots is wrong
JwtNotBeforeExceptionthe token isn't valid yet because its
notBefore
attribute is in the futureJwtValidationExceptiondefault validation exception
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Attributes
- Inherited from:
- JwtCore
Implicits
Inherited implicits
Attributes
- Inherited from:
- JwtUpickleImplicits
Attributes
- Inherited from:
- JwtUpickleImplicits