URLProtectionSpace class Null safety

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. [...]
read-only, inherited
host String
The hostname of the server.
read / write
iosAuthenticationMethod IOSNSURLProtectionSpaceAuthenticationMethod?
The authentication method used by the receiver. [...]
read / write
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). [...]
read / write
iosIsProxy bool?
Returns a Boolean value that indicates whether the receiver does not descend from NSObject. [...]
read / write
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. [...]
read / write
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. [...]
read / write
port int?
The port of the server.
read / write
protocol String?
The protocol of the server - e.g. "http", "ftp", "https".
read / write
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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sslCertificate SslCertificate?
The SSL certificate used.
read / write
sslError SslError?
The SSL Error associated.
read / write

Methods

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