Package org.subethamail.smtp.auth
Class LoginAuthenticationHandlerFactory
java.lang.Object
org.subethamail.smtp.auth.LoginAuthenticationHandlerFactory
- All Implemented Interfaces:
AuthenticationHandlerFactory
public class LoginAuthenticationHandlerFactory
extends Object
implements AuthenticationHandlerFactory
Implements the SMTP AUTH LOGIN mechanism.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.
You are only required to plug your UsernamePasswordValidator implementation for username and password validation to take effect.
LOGIN is an obsolete authentication method which has no formal specification. There is an expired IETF draft for informational purposes. A Microsoft document can also be found, which intends to specify the LOGIN mechanism. The latter is not entirely compatible, neither with the IETF draft nor with RFC 4954 (SMTP Service Extension for Authentication). However this implementation is likely usable with clients following any of the two documents.
- Author:
- Marco Trevisan, Jeff Schnitzer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a fresh instance of your handler.If your handler supports RFC 2554 at some degree, then it must return all the supported mechanisms here.
-
Constructor Details
-
LoginAuthenticationHandlerFactory
-
-
Method Details
-
getAuthenticationMechanisms
Description copied from interface:AuthenticationHandlerFactoryIf 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:
getAuthenticationMechanismsin interfaceAuthenticationHandlerFactory- Returns:
- the supported authentication mechanisms as List, names are in upper case.
-
create
Description copied from interface:AuthenticationHandlerFactoryCreate a fresh instance of your handler.- Specified by:
createin interfaceAuthenticationHandlerFactory
-