com.ericdaugherty.mail.server.auth
Class AuthContext

java.lang.Object
  extended by com.ericdaugherty.mail.server.auth.AuthContext

public class AuthContext
extends java.lang.Object

This class is used in a gss-api context to envelope a smtp/pop server session in a privileged block bound by (a) jgss subject(s).

Author:
Andreas Kyrmegalos

Method Summary
 GSSServerMode getGSSServerMode(boolean isSMTP, java.lang.String clientIp)
           
static AuthContext getInstance()
           
static AuthContext initialize(javax.security.auth.Subject[] subjects)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final AuthContext getInstance()

initialize

public static final AuthContext initialize(javax.security.auth.Subject[] subjects)

getGSSServerMode

public GSSServerMode getGSSServerMode(boolean isSMTP,
                                      java.lang.String clientIp)
                               throws javax.security.sasl.SaslException
Throws:
javax.security.sasl.SaslException