Class AuthLoginThread
- java.lang.Object
-
- java.lang.Thread
-
- com.sun.identity.authentication.internal.AuthLoginThread
-
- All Implemented Interfaces:
Runnable,CallbackHandler
public class AuthLoginThread extends Thread implements CallbackHandler
The classAuthLoginThreadprovides 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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAuthLoginThread(AuthContext ctx)Constructor for this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(Callback[] callback)Method that implements JAAS'sCallbackHandlerinterface.voidrun()Method that call's JAAS'sLoginContext'slogin()method.-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Constructor Detail
-
AuthLoginThread
protected AuthLoginThread(AuthContext ctx)
Constructor for this class. Since it is protected, only classes in this package can instantiate this object.
-
-
Method Detail
-
run
public void run()
Method that call's JAAS'sLoginContext'slogin()method.
-
handle
public void handle(Callback[] callback) throws IOException, UnsupportedCallbackException
Method that implements JAAS'sCallbackHandlerinterface. This method receives the authentication information requests from the plug-ins and sends it toAuthContext, and similarly accepts the submited authentication information fromAuthContextand sends it to the plug-ins.- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-
-