HttpAuthenticationChallenge class Null safety

Class that represents the challenge of the WebView.onReceivedHttpAuthRequest event. It provides all the information about the challenge.

Inheritance

Constructors

HttpAuthenticationChallenge({required int previousFailureCount, required URLProtectionSpace protectionSpace, IOSURLResponse? iosFailureResponse, URLCredential? proposedCredential, String? iosError})

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
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. [...]
read / write
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. [...]
read / write
previousFailureCount int
A count of previous failed authentication attempts.
read / write
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.
read / write
protectionSpace URLProtectionSpace
The protection space requiring authentication.
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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