PlainAuthentication class
Provides a simple username-password authentication
- Inheritance
-
- Object
- MailAuthentication
- UserNameBasedAuthentication
- PlainAuthentication
- Annotations
-
- @JsonSerializable()
Constructors
- PlainAuthentication(String userName, String password)
-
Creates a new plain authentication
with the given
userName
and password.const -
PlainAuthentication.fromJson(Map<
String, dynamic> json) -
Creates a new PlainAuthentication from the given
json
factory
Properties
- authentication → Authentication
-
The type of this authentication
finalinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- password → String
-
The password
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- typeName → String
-
The name of this authentication type, e.g.
plain
oroauth2
no setterinherited - userName → String
-
The user name
finalinherited
Methods
-
authenticate(
ServerConfig serverConfig, {ImapClient? imap, PopClient? pop, SmtpClient? smtp}) → Future< void> -
Authenticates with the specified mail service
override
-
copyWith(
{String? userName, String? password}) → PlainAuthentication - Copies this authentication with the given values
-
copyWithUserName(
String userName) → UserNameBasedAuthentication -
Copies this authentication with the new
userName
override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this PlainAuthentication to JSON
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override