
org.subethamail.smtp.auth.DummyAuthenticationHandler Maven / Gradle / Ivy
package org.subethamail.smtp.auth;
import java.util.ArrayList;
import java.util.List;
import org.subethamail.smtp.AuthenticationHandler;
import org.subethamail.smtp.RejectException;
import org.subethamail.smtp.server.ConnectionContext;
/**
* Implements a dummy AUTH mechanism.
* Will always allow to login without asking for any parameter.
*
* @author Jeff Schnitzer
* @author De Oliveira Edouard <[email protected]>
*/
public class DummyAuthenticationHandler implements AuthenticationHandler
{
public List getAuthenticationMechanisms()
{
return new ArrayList();
}
public boolean auth(String clientInput, StringBuilder response, ConnectionContext ctx) throws RejectException
{
return true;
}
public void resetState()
{
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy