Class JsonWebTokenHashAlgorithmConverter
This utility class is designed to make JsonWebTokenHashAlgorithm related conversions easier to work with.
Inheritance
System.Object
JsonWebTokenHashAlgorithmConverter
Namespace: Cuemon.Security.Web
Assembly: Cuemon.Security.dll
Syntax
public static class JsonWebTokenHashAlgorithmConverter
Methods
| Improve this DocToHmacAlgorithm(JsonWebTokenHashAlgorithm)
Converts the specified value
to its HmacAlgorithmType equivalent.
Declaration
public static HmacAlgorithmType ToHmacAlgorithm(JsonWebTokenHashAlgorithm value)
Parameters
Type | Name | Description |
---|---|---|
JsonWebTokenHashAlgorithm | value | The JSON Web Token hash algorithm to be converted. |
Returns
Type | Description |
---|---|
HmacAlgorithmType | A HmacAlgorithmType that is equivalent to |
ToString(JsonWebTokenHashAlgorithm)
Converts the specified value
to its JWT System.String equivalent.
Declaration
public static string ToString(JsonWebTokenHashAlgorithm value)
Parameters
Type | Name | Description |
---|---|---|
JsonWebTokenHashAlgorithm | value | The JSON Web Token hash algorithm to be converted. |
Returns
Type | Description |
---|---|
System.String | A JWT System.String that is equivalent to |