Author: norman
Date: Tue Nov 22 09:34:18 2011
New Revision: 1204878
URL: http://svn.apache.org/viewvc?rev=1204878&view=rev
Log:
Make AuthCmdHandler easier to extend
Modified:
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/esmtp/AuthCmdHandler.java
Modified:
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/esmtp/AuthCmdHandler.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/esmtp/AuthCmdHandler.java?rev=1204878&r1=1204877&r2=1204878&view=diff
==============================================================================
---
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/esmtp/AuthCmdHandler.java
(original)
+++
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/core/esmtp/AuthCmdHandler.java
Tue Nov 22 09:34:18 2011
@@ -92,12 +92,12 @@ public class AuthCmdHandler
/**
* The text string for the SMTP AUTH type PLAIN.
*/
- private final static String AUTH_TYPE_PLAIN = "PLAIN";
+ protected final static String AUTH_TYPE_PLAIN = "PLAIN";
/**
* The text string for the SMTP AUTH type LOGIN.
*/
- private final static String AUTH_TYPE_LOGIN = "LOGIN";
+ protected final static String AUTH_TYPE_LOGIN = "LOGIN";
/**
* The AuthHooks
@@ -309,7 +309,7 @@ public class AuthCmdHandler
* @param authType
* @return
*/
- private Response doAuthTest(SMTPSession session, String user, String pass,
String authType) {
+ protected Response doAuthTest(SMTPSession session, String user, String
pass, String authType) {
if ((user == null) || (pass == null)) {
return new SMTPResponse(SMTPRetCode.SYNTAX_ERROR_ARGUMENTS,"Could
not decode parameters for AUTH "+authType);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]