Class DigestAccessAuthenticationOptions
Configuration options for DigestAccessAuthenticationMiddleware. This class cannot be inherited.
Inherited Members
Namespace: Cuemon.AspNetCore.Authentication
Assembly: Cuemon.AspNetCore.Authentication.dll
Syntax
public sealed class DigestAccessAuthenticationOptions : AuthenticationOptions
Constructors
| Improve this DocDigestAccessAuthenticationOptions()
Initializes a new instance of the DigestAccessAuthenticationOptions class.
Declaration
public DigestAccessAuthenticationOptions()
Properties
| Improve this DocAlgorithm
Gets or sets the algorithm of the HTTP Digest Access Authentication. Default is MD5.
Declaration
public HashAlgorithmType Algorithm { get; set; }
Property Value
Type | Description |
---|---|
HashAlgorithmType | The algorithm of the HTTP Digest Access Authentication. |
Authenticator
Gets or sets the function delegate that will perform the authentication from the specified username
.
Declaration
public DigestAccessAuthenticator Authenticator { get; set; }
Property Value
Type | Description |
---|---|
DigestAccessAuthenticator | The function delegate that will perform the authentication. |
DigestAccessSigner
Gets or sets the function delegate that will sign a message retrieved from a HTTP request.
Declaration
public Func<DigestAccessAuthenticationParameters, byte[]> DigestAccessSigner { get; set; }
Property Value
Type | Description |
---|---|
System.Func<DigestAccessAuthenticationParameters, System.Byte[]> | The function delegate that will sign a message. |
NonceExpiredParser
Gets or sets the function delegate for parsing nonce string values for expiration.
Declaration
public Func<string, TimeSpan, bool> NonceExpiredParser { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String, System.TimeSpan, System.Boolean> | The function delegate for parsing nonce string values for expiration. |
NonceGenerator
Gets or sets the function delegate for generating nonce string values.
Declaration
public Func<DateTime, string, byte[], string> NonceGenerator { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.DateTime, System.String, System.Byte[], System.String> | The function delegate for generating nonce string values. |
NonceSecret
Gets or sets the function delegate for retrieving the cryptographic secret used in nonce string values.
Declaration
public Func<byte[]> NonceSecret { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.Byte[]> | The function delegate for retrieving the cryptographic secret used in nonce string values. |
OpaqueGenerator
Gets or sets the function delegate for generating opaque string values.
Declaration
public Func<string> OpaqueGenerator { get; set; }
Property Value
Type | Description |
---|---|
System.Func<System.String> | The function delegate for generating opaque string values. |
Realm
Gets the realm that defines the protection space.
Declaration
public string Realm { get; set; }
Property Value
Type | Description |
---|---|
System.String | The realm that defines the protection space. |