object JwtAlgorithm
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- JwtAlgorithm
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
- def allAsymmetric(): Seq[JwtAsymmetricAlgorithm]
- def allECDSA(): Seq[JwtECDSAAlgorithm]
- def allEdDSA(): Seq[JwtEdDSAAlgorithm]
- def allHmac(): Seq[JwtHmacAlgorithm]
- def allRSA(): Seq[JwtRSAAlgorithm]
-
def
fromString(algo: String): JwtAlgorithm
Deserialize an algorithm from its string equivalent.
Deserialize an algorithm from its string equivalent. Only real algorithms supported, if you need to support "none", use "optionFromString".
- algo
the name of the algorithm (e.g. HS256 or HmacSHA256)
- returns
the actual instance of the algorithm
- Exceptions thrown
JwtNonSupportedAlgorithm
in case the string doesn't match any known algorithm
-
def
optionFromString(algo: String): Option[JwtAlgorithm]
Deserialize an algorithm from its string equivalent.
Deserialize an algorithm from its string equivalent. If it's the special "none" algorithm, return None, else, return Some with the corresponding algorithm inside.
- algo
the name of the algorithm (e.g. none, HS256 or HmacSHA256)
- returns
the actual instance of the algorithm
- object ES256 extends JwtECDSAAlgorithm with Product with Serializable
- object ES384 extends JwtECDSAAlgorithm with Product with Serializable
- object ES512 extends JwtECDSAAlgorithm with Product with Serializable
- object Ed25519 extends JwtEdDSAAlgorithm with Product with Serializable
- object HMD5 extends JwtHmacAlgorithm with Product with Serializable
- object HS224 extends JwtHmacAlgorithm with Product with Serializable
- object HS256 extends JwtHmacAlgorithm with Product with Serializable
- object HS384 extends JwtHmacAlgorithm with Product with Serializable
- object HS512 extends JwtHmacAlgorithm with Product with Serializable
- object RS256 extends JwtRSAAlgorithm with Product with Serializable
- object RS384 extends JwtRSAAlgorithm with Product with Serializable
- object RS512 extends JwtRSAAlgorithm with Product with Serializable