Class HmacAuthenticationOptions
Configuration options for HmacAuthenticationMiddleware. This class cannot be inherited.
Inherited Members
Namespace: Cuemon.AspNetCore.Authentication
Assembly: Cuemon.AspNetCore.Authentication.dll
Syntax
public sealed class HmacAuthenticationOptions : AuthenticationOptions
Constructors
| Improve this DocHmacAuthenticationOptions()
Initializes a new instance of the HmacAuthenticationOptions class.
Declaration
public HmacAuthenticationOptions()
Properties
| Improve this DocAlgorithm
Gets or sets the algorithm of the HMAC Authentication. Default is SHA1.
Declaration
public HmacAlgorithmType Algorithm { get; set; }
Property Value
Type | Description |
---|---|
HmacAlgorithmType | The algorithm of the HMAC Authentication. |
AuthenticationScheme
Gets the name of the authentication scheme. Default is "HMAC".
Declaration
public string AuthenticationScheme { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the authentication scheme. |
Authenticator
Gets or sets the function delegate that will perform the authentication from the specified publicKey
.
Declaration
public HmacAuthenticator Authenticator { get; set; }
Property Value
Type | Description |
---|---|
HmacAuthenticator | The function delegate that will perform the authentication. |
HmacSigner
Gets or sets the function delegate that will sign a message retrieved by MessageDescriptor.
Declaration
public Func<HmacAuthenticationParameters, byte[]> HmacSigner { get; set; }
Property Value
Type | Description |
---|---|
System.Func<HmacAuthenticationParameters, System.Byte[]> | The function delegate that will sign a message. |
MessageDescriptor
Gets or sets the function delegate that provides information about the message to be signed.
Declaration
public Func<HttpContext, string> MessageDescriptor { get; set; }
Property Value
Type | Description |
---|---|
System.Func<Microsoft.AspNetCore.Http.HttpContext, System.String> | The function delegate that provides information about the message to be signed. |