HttpAuthenticationChallenge class

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

Inheritance

Constructors

HttpAuthenticationChallenge({String? error, URLResponse? failureResponse, @Deprecated('Use error instead') String? iosError, @Deprecated('Use failureResponse instead') IOSURLResponse? iosFailureResponse, required int previousFailureCount, URLCredential? proposedCredential, required URLProtectionSpace protectionSpace})

Properties

error 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
failureResponse URLResponse?
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
hashCode int
The hash code for this object.
no setterinherited
iosError String?
Use error instead.
getter/setter pair
iosFailureResponse IOSURLResponse?
Use failureResponse instead.
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>
Converts instance to a map.
override
toMap() Map<String, dynamic>
Converts instance to a map.
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromMap(Map<String, dynamic>? map) HttpAuthenticationChallenge?
Gets a possible HttpAuthenticationChallenge instance from a Map value.
override