URLProtectionSpace class

Class that represents a protection space requiring authentication.

Constructors

URLProtectionSpace({required String host, String? protocol, String? realm, int? port, SslCertificate? sslCertificate, SslError? sslError, IOSNSURLProtectionSpaceAuthenticationMethod? iosAuthenticationMethod, List<X509Certificate>? iosDistinguishedNames, bool? iosReceivesCredentialSecurely, bool? iosIsProxy, IOSNSURLProtectionSpaceProxyType? iosProxyType})

Properties

hashCode int
The hash code for this object.
no setterinherited
host String
The hostname of the server.
getter/setter pair
iosAuthenticationMethod IOSNSURLProtectionSpaceAuthenticationMethod?
The authentication method used by the receiver.
getter/setter pair
iosDistinguishedNames List<X509Certificate>?
The acceptable certificate-issuing authorities for client certificate authentication. This value is null if the authentication method of the protection space is not client certificate. The returned issuing authorities are encoded with Distinguished Encoding Rules (DER).
getter/setter pair
iosIsProxy bool?
Returns a Boolean value that indicates whether the receiver does not descend from NSObject.
getter/setter pair
iosProxyType IOSNSURLProtectionSpaceProxyType?
The receiver's proxy type. This value is null if the receiver does not represent a proxy protection space. The supported proxy types are listed in IOSNSURLProtectionSpaceProxyType.values.
getter/setter pair
iosReceivesCredentialSecurely bool?
A Boolean value that indicates whether the credentials for the protection space can be sent securely. This value is true if the credentials for the protection space represented by the receiver can be sent securely, false otherwise.
getter/setter pair
port int?
The port of the server.
getter/setter pair
protocol String?
The protocol of the server - e.g. "http", "ftp", "https".
getter/setter pair
realm String?
A string indicating a protocol-specific subdivision of a single host. For http and https, this maps to the realm string in http authentication challenges. For many other protocols it is unused.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sslCertificate SslCertificate?
The SSL certificate used.
getter/setter pair
sslError SslError?
The SSL Error associated.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
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) URLProtectionSpace?