JwtAlgorithm

pdi.jwt.JwtAlgorithm$
See theJwtAlgorithm companion trait

Attributes

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

Members list

Concise view

Type members

Classlikes

case object ES256 extends JwtECDSAAlgorithm

Attributes

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

Attributes

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

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
ES512.type
case object Ed25519 extends JwtEdDSAAlgorithm

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
Ed25519.type
case object HMD5 extends JwtHmacAlgorithm

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

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

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Self type
RS512.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".

Attributes

algo

the name of the algorithm (e.g. HS256 or HmacSHA256)

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.

Attributes

algo

the name of the algorithm (e.g. none, HS256 or HmacSHA256)

Returns:

the actual instance of the algorithm