com.ericdaugherty.mail.server.auth
Class LoginServerMode

java.lang.Object
  extended by com.ericdaugherty.mail.server.auth.PlainServerMode
      extended by com.ericdaugherty.mail.server.auth.LoginServerMode
All Implemented Interfaces:
AuthServerMode, javax.security.sasl.SaslServer

public class LoginServerMode
extends PlainServerMode

Verify client authentication using LOGIN.

Author:
Andreas Kyrmegalos

Nested Class Summary
 
Nested classes/interfaces inherited from class com.ericdaugherty.mail.server.auth.PlainServerMode
PlainServerMode.FinalizeAuthentication, PlainServerMode.FinalizeAuthenticationPOP3, PlainServerMode.FinalizeAuthenticationSMTP
 
Field Summary
 
Fields inherited from class com.ericdaugherty.mail.server.auth.PlainServerMode
clientIp, domainNeeded, finalizeAuthentication, user, userMBLocked
 
Constructor Summary
LoginServerMode(boolean isSMTP)
           
 
Method Summary
 void conclude()
           
 byte[] evaluateResponse(byte[] responseBytes)
           
 
Methods inherited from class com.ericdaugherty.mail.server.auth.PlainServerMode
dispose, getAuthorizationID, getMechanismName, getNegotiatedProperty, getUser, isComplete, isDomainNeeded, isUserMBLocked, setClientIp, unwrap, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginServerMode

public LoginServerMode(boolean isSMTP)
Method Detail

evaluateResponse

public byte[] evaluateResponse(byte[] responseBytes)
                        throws javax.security.sasl.SaslException
Specified by:
evaluateResponse in interface javax.security.sasl.SaslServer
Overrides:
evaluateResponse in class PlainServerMode
Throws:
javax.security.sasl.SaslException

conclude

public void conclude()
Specified by:
conclude in interface AuthServerMode
Overrides:
conclude in class PlainServerMode