public class AuthLoginThread extends Thread implements CallbackHandler
AuthLoginThread
provides the needed synchronization
for JAAS's callback mechanism. This class starts a new thread and waits for
user's authentication information to be submitted. Used by a state less
protocol like HTTP.Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier | Constructor and Description |
---|---|
protected |
AuthLoginThread(AuthContext ctx)
Constructor for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
handle(Callback[] callback)
Method that implements JAAS's
CallbackHandler interface. |
void |
run()
Method that call's JAAS's
LoginContext 's
login() method. |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
protected AuthLoginThread(AuthContext ctx)
public void run()
LoginContext
's
login()
method.public void handle(Callback[] callback) throws IOException, UnsupportedCallbackException
CallbackHandler
interface.
This method receives the authentication information requests from the
plug-ins and sends it to AuthContext
, and similarly
accepts the submited authentication information from
AuthContext
and sends it to the plug-ins.handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.