Interface SmtpAuthenticatorHandler

All Known Implementing Classes:
CramMD5AuthenticationHandler, LoginAuthenticationHandler, PlainAuthenticationHandler

public interface SmtpAuthenticatorHandler
Represents an authenticator handler.
  • Method Details

    • getName

      String getName()
      Returns the name in the SMTP protocol. For instance `PLAIN`.
    • authenticate

      boolean authenticate(SmtpCommand command, SmtpExchangeHandler exchangeHandler, SmtpServerOptions options) throws SmtpProtocolException
      Authenticates the client.
      Parameters:
      command - The initial AUTH command with its parameters.
      exchangeHandler - The exchange handler if challenge responses from the client is needed.
      options - The options.
      Returns:
      true if the user has been authenticated, false otherwise (invalid credentials).
      Throws:
      SmtpProtocolException