Packages

object JwtAlgorithm

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JwtAlgorithm
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def allAsymmetric(): Seq[JwtAsymmetricAlgorithm]
    Annotations
    @nowarn()
  2. def allECDSA(): Seq[JwtECDSAAlgorithm]
  3. def allEdDSA(): Seq[JwtEdDSAAlgorithm]
    Annotations
    @nowarn()
  4. def allHmac(): Seq[JwtHmacAlgorithm]
  5. def allRSA(): Seq[JwtRSAAlgorithm]
  6. 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

  7. 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

  8. case object ES256 extends JwtECDSAAlgorithm with Product with Serializable
  9. case object ES384 extends JwtECDSAAlgorithm with Product with Serializable
  10. case object ES512 extends JwtECDSAAlgorithm with Product with Serializable
  11. case object EdDSA extends JwtEdDSAAlgorithm with Product with Serializable
  12. case object HMD5 extends JwtHmacAlgorithm with Product with Serializable
  13. case object HS224 extends JwtHmacAlgorithm with Product with Serializable
  14. case object HS256 extends JwtHmacAlgorithm with Product with Serializable
  15. case object HS384 extends JwtHmacAlgorithm with Product with Serializable
  16. case object HS512 extends JwtHmacAlgorithm with Product with Serializable
  17. case object RS256 extends JwtRSAAlgorithm with Product with Serializable
  18. case object RS384 extends JwtRSAAlgorithm with Product with Serializable
  19. case object RS512 extends JwtRSAAlgorithm with Product with Serializable

Deprecated Value Members

  1. 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.