Class HMACSHAAlgorithm
- Namespace
- JWT.Algorithms
- Assembly
- Coherence.JWT.dll
public abstract class HMACSHAAlgorithm : IJwtAlgorithm
- Inheritance
-
HMACSHAAlgorithm
- Implements
- Derived
- Extension Methods
Constructors
HMACSHAAlgorithm()
protected HMACSHAAlgorithm()
Properties
HashAlgorithmName
Gets name of the hashing algorithm (e.g. SHA-256/SHA-384/SHA-512).
public abstract HashAlgorithmName HashAlgorithmName { get; }
Property Value
Name
Gets algorithm name.
public abstract string Name { get; }
Property Value
Methods
CreateAlgorithm(byte[])
protected abstract HMAC CreateAlgorithm(byte[] key)
Parameters
key
byte[]
Returns
Sign(byte[], byte[])
Signs provided byte array with provided key.
public byte[] Sign(byte[] key, byte[] bytesToSign)
Parameters
Returns
- byte[]