DigestAuthorizationHeader class final
Represents Digest authentication for HTTP Authorization.
Digest authentication is a more secure method than Basic authentication as it uses a challenge-response mechanism to verify credentials.
- Inheritance
-
- Object
- AuthorizationHeader
- DigestAuthorizationHeader
Constructors
- DigestAuthorizationHeader({required String username, required String realm, required String nonce, required String uri, required String response, String? algorithm, String? qop, String? nc, String? cnonce, String? opaque})
- Constructs a DigestAuthorizationHeader with the specified parameters.
- DigestAuthorizationHeader.parse(String value)
-
Parses a Digest authorization header value and returns a DigestAuthorizationHeader instance.
factory
Properties
- algorithm → String?
-
The algorithm used to hash the credentials.
final
- cnonce → String?
-
The client nonce, which is an opaque string value provided by the client.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- headerValue → String
-
Returns the full authorization string for Digest authentication.
no setteroverride
- nc → String?
-
The nonce count, which is the hexadecimal count of the number of requests sent with the nonce value.
final
- nonce → String
-
A server-specified data string which should be uniquely generated each time a 401 response is made.
final
- opaque → String?
-
An optional string of data specified by the server.
final
- qop → String?
-
The quality of protection applied to the message.
final
- realm → String
-
The realm in which the user is authenticated.
final
- response → String
-
The response hash calculated by the client.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → String
-
The URI of the requested resource.
final
- username → String
-
The username for Digest authentication.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
toStringInsecure(
) → String - Returns a string representation of this DigestAuthorizationHeader with all field values exposed, including sensitive ones.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override