JwtAlgorithm

pdi.jwt.JwtAlgorithm$
See theJwtAlgorithm companion trait
object JwtAlgorithm

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object ES256 extends JwtECDSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
ES256.type
case object ES384 extends JwtECDSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
ES384.type
case object ES512 extends JwtECDSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
ES512.type
case object EdDSA extends JwtEdDSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
EdDSA.type
case object HMD5 extends JwtHmacAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
HMD5.type
case object HS224 extends JwtHmacAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
HS224.type
case object HS256 extends JwtHmacAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
HS256.type
case object HS384 extends JwtHmacAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
HS384.type
case object HS512 extends JwtHmacAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
HS512.type
case object RS256 extends JwtRSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
RS256.type
case object RS384 extends JwtRSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
RS384.type
case object RS512 extends JwtRSAAlgorithm

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
RS512.type

Deprecated classlikes

case object Ed25519 extends JwtEdDSAAlgorithm

Attributes

Deprecated
true
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait JwtAlgorithm
class Object
trait Matchable
class Any
Show all
Self type
Ed25519.type

Inherited types

type MirroredElemLabels <: Tuple

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