Attributes
- Companion
- trait
- Graph
-
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
JwtAlgorithm.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtECDSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
ES256.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtECDSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
ES384.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtECDSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
ES512.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtEdDSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
EdDSA.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtHmacAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
HMD5.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtHmacAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
HS224.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtHmacAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
HS256.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtHmacAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
HS384.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtHmacAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
HS512.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtRSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
RS256.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtRSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
RS384.type
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtRSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
RS512.type
Deprecated classlikes
Attributes
- Deprecated
- true
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait JwtEdDSAAlgorithmtrait JwtAsymmetricAlgorithmtrait JwtAlgorithmclass Objecttrait Matchableclass AnyShow all
- Self type
-
Ed25519.type
Inherited and Abstract types
The names of the product elements
The names of the product elements
Attributes
- Inherited from:
- Mirror
The name of the type
The name of the type
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Deserialize an algorithm from its string equivalent. Only real algorithms supported, if you need to support "none", use "optionFromString".
Deserialize an algorithm from its string equivalent. Only real algorithms supported, if you need to support "none", use "optionFromString".
Value parameters
- algo
-
the name of the algorithm (e.g. HS256 or HmacSHA256)
Attributes
- Returns
-
the actual instance of the algorithm
- Throws
-
JwtNonSupportedAlgorithm
in case the string doesn't match any known algorithm
Deserialize an algorithm from its string equivalent. If it's the special "none" algorithm, return None, else, return Some with the corresponding algorithm inside.
Deserialize an algorithm from its string equivalent. If it's the special "none" algorithm, return None, else, return Some with the corresponding algorithm inside.
Value parameters
- algo
-
the name of the algorithm (e.g. none, HS256 or HmacSHA256)
Attributes
- Returns
-
the actual instance of the algorithm