URLProtectionSpace constructor
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,
Implementation
URLProtectionSpace(
{this.authenticationMethod,
this.distinguishedNames,
required this.host,
@Deprecated('Use authenticationMethod instead')
this.iosAuthenticationMethod,
@Deprecated('Use distinguishedNames instead') this.iosDistinguishedNames,
@Deprecated('Use proxyType instead') this.iosProxyType,
@Deprecated('Use receivesCredentialSecurely instead')
this.iosReceivesCredentialSecurely,
this.port,
this.protocol,
this.proxyType,
this.realm,
this.receivesCredentialSecurely,
this.sslCertificate,
this.sslError}) {
authenticationMethod = authenticationMethod ??
URLProtectionSpaceAuthenticationMethod.fromNativeValue(
iosAuthenticationMethod?.toNativeValue());
distinguishedNames = distinguishedNames ?? iosDistinguishedNames;
proxyType = proxyType ??
URLProtectionSpaceProxyType.fromNativeValue(
iosProxyType?.toNativeValue());
receivesCredentialSecurely =
receivesCredentialSecurely ?? iosReceivesCredentialSecurely;
}