org.subethamail.smtp.auth
Class PlainAuthenticationHandlerFactory

java.lang.Object
  extended by org.subethamail.smtp.auth.PlainAuthenticationHandlerFactory
All Implemented Interfaces:
AuthenticationHandlerFactory

public class PlainAuthenticationHandlerFactory
extends java.lang.Object
implements AuthenticationHandlerFactory

Implements the SMTP AUTH PLAIN mechanism.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.

Author:
Marco Trevisan , Jeff Schnitzer

Constructor Summary
PlainAuthenticationHandlerFactory(UsernamePasswordValidator helper)
           
 
Method Summary
 AuthenticationHandler create()
           
 java.util.List<java.lang.String> getAuthenticationMechanisms()
          If your handler supports RFC 2554 at some degree, then it must return all the supported mechanisms here.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlainAuthenticationHandlerFactory

public PlainAuthenticationHandlerFactory(UsernamePasswordValidator helper)
Method Detail

getAuthenticationMechanisms

public java.util.List<java.lang.String> getAuthenticationMechanisms()
Description copied from 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.

Specified by:
getAuthenticationMechanisms in interface AuthenticationHandlerFactory
Returns:
the supported authentication mechanisms as List.

create

public AuthenticationHandler create()
Specified by:
create in interface AuthenticationHandlerFactory
Returns:


Copyright © 2009 SubEthaSMTP. All Rights Reserved. Build version: UNVERSIONED