object JwtAlgorithm
- Alphabetic
- By Inheritance
- JwtAlgorithm
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def allAsymmetric(): Seq[JwtAsymmetricAlgorithm]
- Annotations
- @nowarn()
- def allECDSA(): Seq[JwtECDSAAlgorithm]
- def allEdDSA(): Seq[JwtEdDSAAlgorithm]
- Annotations
- @nowarn()
- 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
- Annotations
- @nowarn()
- 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
- case object ES256 extends JwtECDSAAlgorithm with Product with Serializable
- case object ES384 extends JwtECDSAAlgorithm with Product with Serializable
- case object ES512 extends JwtECDSAAlgorithm with Product with Serializable
- case object EdDSA extends JwtEdDSAAlgorithm with Product with Serializable
- case object HMD5 extends JwtHmacAlgorithm with Product with Serializable
- case object HS224 extends JwtHmacAlgorithm with Product with Serializable
- case object HS256 extends JwtHmacAlgorithm with Product with Serializable
- case object HS384 extends JwtHmacAlgorithm with Product with Serializable
- case object HS512 extends JwtHmacAlgorithm with Product with Serializable
- case object RS256 extends JwtRSAAlgorithm with Product with Serializable
- case object RS384 extends JwtRSAAlgorithm with Product with Serializable
- case object RS512 extends JwtRSAAlgorithm with Product with Serializable
Deprecated Value Members
- case object Ed25519 extends JwtEdDSAAlgorithm with Product with Serializable
- Annotations
- @deprecated
- Deprecated
(Since version 9.3.0) Ed25519 is not a standard Json Web Algorithm name. Use EdDSA instead.