pdi.jwt
Members list
Type members
Classlikes
Test implementation of JwtCore using only Strings. Most of the time, you should use a lib implementing JSON and shouldn't be using this object. But just in case you need pure Scala support, here it is.
Test implementation of JwtCore using only Strings. Most of the time, you should use a lib implementing JSON and shouldn't be using this object. But just in case you need pure Scala support, here it is.
To see a full list of samples, check the online documentation.
'''Warning''': since there is no JSON support in Scala, this object doesn't have any way to parse a JSON string as an AST, so it only uses regex with all the limitations it implies. Try not to use keys like exp
and nbf
in sub-objects of the claim. For example, if you try to use the following claim: {"user":{"exp":1},"exp":1300819380}
, it should be correct but it will fail because the regex extracting the expiration will return 1
instead of 1300819380
. Sorry about that.
Attributes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait JwtAsymmetricAlgorithmtrait JwtECDSAAlgorithmobject ES256.typeobject ES384.typeobject ES512.typetrait JwtEdDSAAlgorithmobject Ed25519.typeobject EdDSA.typetrait JwtRSAAlgorithmobject RS256.typeobject RS384.typeobject RS512.typetrait JwtHmacAlgorithmobject HMD5.typeobject HS224.typeobject HS256.typeobject HS384.typeobject HS512.typeclass JwtUnknownAlgorithmShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JwtAlgorithm.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JwtArrayUtils.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JwtBase64.type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Provide the main logic around Base64 encoding / decoding and signature using the correct algorithm. '''H''' and '''C''' types are respesctively the header type and the claim type. For the core project, they will be String but you are free to extend this trait using other types like JsObject or anything else.
Provide the main logic around Base64 encoding / decoding and signature using the correct algorithm. '''H''' and '''C''' types are respesctively the header type and the claim type. For the core project, they will be String but you are free to extend this trait using other types like JsObject or anything else.
Please, check implementations, like Jwt, for code samples.
Type parameters
- C
-
the type of the extracted claim from a JSON Web Token
- H
-
the type of the extracted header from a JSON Web Token
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JwtOptions.type