com.ericdaugherty.mail.server.auth
Class GSSServerMode

java.lang.Object
  extended by com.ericdaugherty.mail.server.auth.GSSServerMode
All Implemented Interfaces:
AuthServerMode

public class GSSServerMode
extends java.lang.Object
implements AuthServerMode

Verify client authentication using SASL GSS-API. Possibly protect the data stream using integrity/privacy wrapping.

Author:
Andreas Kyrmegalos

Nested Class Summary
 class GSSServerMode.SASLCallbackHandler
           
 
Constructor Summary
GSSServerMode(java.lang.Boolean isSMTPSession, java.lang.String clientIp)
           
 
Method Summary
 void conclude()
           
 byte[] evaluateResponse(byte[] responseBytes)
           
 javax.security.sasl.SaslServer getGssSaslServer()
           
 User getUser()
           
 boolean isDomainNeeded()
           
 boolean isProtected()
           
 boolean isUserMBLocked()
           
 void negotiateGSSAuthenticationContext()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GSSServerMode

public GSSServerMode(java.lang.Boolean isSMTPSession,
                     java.lang.String clientIp)
Method Detail

negotiateGSSAuthenticationContext

public void negotiateGSSAuthenticationContext()
                                       throws javax.security.sasl.SaslException
Throws:
javax.security.sasl.SaslException

evaluateResponse

public byte[] evaluateResponse(byte[] responseBytes)
                        throws javax.security.sasl.SaslException
Throws:
javax.security.sasl.SaslException

isDomainNeeded

public boolean isDomainNeeded()

isUserMBLocked

public boolean isUserMBLocked()

getGssSaslServer

public javax.security.sasl.SaslServer getGssSaslServer()

isProtected

public boolean isProtected()

getUser

public User getUser()
Specified by:
getUser in interface AuthServerMode

conclude

public void conclude()
Specified by:
conclude in interface AuthServerMode