C# Class SmtpServer.Protocol.AuthCommand

Inheritance: SmtpCommand
Mostra file Open project: cosullivan/SmtpServer Class Usage Examples

Public Methods

Method Description
AuthCommand ( IUserAuthenticator userAuthenticator, AuthenticationMethod method, string parameter ) : System

Constructor.

ExecuteAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task

Execute the command.

Private Methods

Method Description
TryLoginAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task

Attempt a LOGIN login sequence.

TryPlainAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task

Attempt a PLAIN login sequence.

Method Details

AuthCommand() public method

Constructor.
public AuthCommand ( IUserAuthenticator userAuthenticator, AuthenticationMethod method, string parameter ) : System
userAuthenticator IUserAuthenticator The user authenticator.
method AuthenticationMethod The authentication method.
parameter string The authentication parameter.
return System

ExecuteAsync() public method

Execute the command.
public ExecuteAsync ( ISmtpSessionContext context, CancellationToken cancellationToken ) : Task
context ISmtpSessionContext The execution context to operate on.
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task