org.subethamail.smtp.AuthenticationHandlerFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of subethasmtp Show documentation
Show all versions of subethasmtp Show documentation
SubEtha SMTP is an easy-to-use server-side SMTP library for Java.
package org.subethamail.smtp;
import java.util.List;
/**
* The factory interface for creating authentication handlers.
*
* @author Marco Trevisan
* @author Jeff Schnitzer
*/
public interface AuthenticationHandlerFactory
{
/**
* If your handler supports RFC 2554 at some degree, then it must return all the supported mechanisms here.
* The order you use to populate the list will be preserved in the output of the EHLO command.
*
* @return the supported authentication mechanisms as List.
*/
public List getAuthenticationMechanisms();
/**
* Create a fresh instance of your handler.
*/
public AuthenticationHandler create();
}