com.ericdaugherty.mail.server.auth
Class GSSServerMode
java.lang.Object
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
Constructor Summary |
GSSServerMode(java.lang.Boolean isSMTPSession,
java.lang.String clientIp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GSSServerMode
public GSSServerMode(java.lang.Boolean isSMTPSession,
java.lang.String clientIp)
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