- Companion:
- class
Type members
Classlikes
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)
- 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)
- Returns:
the actual instance of the algorithm