HmacAuthorizationHeaderBuilder Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Authentication.Hmac
- Assemblies
- Cuemon.AspNetCore.Authentication.dll
HmacAuthorizationHeaderBuilder(string, KeyedCryptoAlgorithm, UnkeyedCryptoAlgorithm)
Initializes a new instance of the HmacAuthorizationHeaderBuilder class.
public HmacAuthorizationHeaderBuilder(string authenticationScheme = "HMAC", KeyedCryptoAlgorithm hmacAlgorithm = KeyedCryptoAlgorithm.HmacSha256, UnkeyedCryptoAlgorithm algorithm = UnkeyedCryptoAlgorithm.Sha256)
Parameters
authenticationSchemestringThe name of the authentication scheme. Default is HMAC.
hmacAlgorithmKeyedCryptoAlgorithmThe algorithm to use when computing the final signature of the HMAC Authentication header.
algorithmUnkeyedCryptoAlgorithmThe algorithm to use when computing in-between signatures as part of the final signing of the HMAC Authentication header.