ProxyAuth class

Authentication credentials for a proxy

Constructors

ProxyAuth.new({required String username, required String password, ProxyAuthMethod method = ProxyAuthMethod.basic, String? domain})
Creates a new ProxyAuth instance
const
ProxyAuth.basic({required String username, required String password})
Creates a new ProxyAuth instance with basic authentication
factory
ProxyAuth.digest({required String username, required String password})
Creates a new ProxyAuth instance with digest authentication
factory
ProxyAuth.fromJson(Map<String, dynamic> json)
Creates a ProxyAuth from a JSON map
factory
ProxyAuth.ntlm({required String username, required String password, required String domain})
Creates a new ProxyAuth instance with NTLM authentication
factory

Properties

domain String?
Domain for NTLM authentication
final
hashCode int
The hash code for this object.
no setterinherited
method ProxyAuthMethod
Authentication method
final
password String
Password for authentication
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
Username for authentication
final

Methods

copyWith({String? username, String? password, ProxyAuthMethod? method, String? domain}) ProxyAuth
Creates a copy of this ProxyAuth with the given parameters
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this ProxyAuth to a JSON map
toString() String
A string representation of this object.
inherited

Operators

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