URLProtectionSpace class

Class that represents a protection space requiring authentication.

Constructors

URLProtectionSpace({URLProtectionSpaceAuthenticationMethod? authenticationMethod, List<X509Certificate>? distinguishedNames, required String host, @Deprecated('Use authenticationMethod instead') IOSNSURLProtectionSpaceAuthenticationMethod? iosAuthenticationMethod, @Deprecated('Use distinguishedNames instead') List<X509Certificate>? iosDistinguishedNames, @Deprecated('Use proxyType instead') IOSNSURLProtectionSpaceProxyType? iosProxyType, @Deprecated('Use receivesCredentialSecurely instead') bool? iosReceivesCredentialSecurely, int? port, String? protocol, URLProtectionSpaceProxyType? proxyType, String? realm, bool? receivesCredentialSecurely, SslCertificate? sslCertificate, SslError? sslError})

Properties

authenticationMethod URLProtectionSpaceAuthenticationMethod?
The authentication method used by the receiver.
getter/setter pair
distinguishedNames 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
hashCode int
The hash code for this object.
no setterinherited
host String
The hostname of the server.
getter/setter pair
iosAuthenticationMethod IOSNSURLProtectionSpaceAuthenticationMethod?
Use authenticationMethod instead.
getter/setter pair
iosDistinguishedNames List<X509Certificate>?
Use distinguishedNames instead.
getter/setter pair
iosProxyType IOSNSURLProtectionSpaceProxyType?
Use proxyType instead.
getter/setter pair
iosReceivesCredentialSecurely bool?
Use receivesCredentialSecurely instead.
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
proxyType URLProtectionSpaceProxyType?
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 URLProtectionSpaceProxyType.values.
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
receivesCredentialSecurely 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
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>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
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?
Gets a possible URLProtectionSpace instance from a Map value.