MailAuthentication class abstract

Contains an authentication for a mail service Compare PlainAuthentication and OauthAuthentication for implementations.

Implementers

Constructors

MailAuthentication(Authentication authentication)
Creates a new authentication with the given typeName
const
MailAuthentication.fromJson(Map<String, dynamic> json)
Creates a new MailAuthentication from the given json
factory

Properties

authentication Authentication
The type of this authentication
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeName String
The name of this authentication type, e.g. plain or oauth2
no setter

Methods

authenticate(ServerConfig serverConfig, {ImapClient? imap, PopClient? pop, SmtpClient? smtp}) Future<void>
Authenticates with the specified mail service
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this MailAuthentication to JSON
toString() String
A string representation of this object.
inherited

Operators

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