HttpAuthenticationChallenge class
Class that represents the challenge of the WebView.onReceivedHttpAuthRequest event. It provides all the information about the challenge.
- Inheritance
-
- Object
- URLAuthenticationChallenge
- HttpAuthenticationChallenge
Constructors
- HttpAuthenticationChallenge({required int previousFailureCount, required URLProtectionSpace protectionSpace, IOSURLResponse? iosFailureResponse, URLCredential? proposedCredential, String? iosError})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosError ↔ String?
-
The error object representing the last authentication failure.
This value is
null
if the protocol doesn’t use errors to indicate an authentication failure.getter/setter pair - iosFailureResponse ↔ IOSURLResponse?
-
The URL response object representing the last authentication failure.
This value is
null
if the protocol doesn’t use responses to indicate an authentication failure.getter/setter pair - previousFailureCount ↔ int
-
A count of previous failed authentication attempts.
getter/setter pair
- proposedCredential ↔ URLCredential?
-
The proposed credential for this challenge.
This method returns
null
if there is no default credential for this challenge. If you have previously attempted to authenticate and failed, this method returns the most recent failed credential. If the proposed credential is not nil and returns true when you call its hasPassword method, then the credential is ready to use as-is. If the proposed credential’s hasPassword method returns false, then the credential provides a default user name, and the client must prompt the user for a corresponding password.getter/setter pair - protectionSpace ↔ URLProtectionSpace
-
The protection space requiring authentication.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? map) → HttpAuthenticationChallenge? -
override