|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
org.openmdx.security.auth.context.pool.AuthenticationContextThread
public class AuthenticationContextThread
Authenticator
| 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 |
| Method Summary | |
|---|---|
boolean |
continueLogin()
Continue execution |
int |
getAttempt()
Tells how often the login sequence has been started for the associated LoginContext. |
Callback[] |
getCallbacks()
Retrieve the callbacks to be handled. |
String |
getCorrelationId()
Retrieve the id. |
Subject |
getSubject()
Return the authenticated Subject. |
static ObjectPool |
newPool(Configuration loginConfiguration,
String applicationName,
int initialCapacity,
int maximumCapacity,
long maximumWait,
long idleTimeout,
long callbackTimeout,
boolean debug,
Invalidator invalidator)
Create an Authenticator pool |
boolean |
restartLogin()
Re-starts the authentication sequence |
boolean |
resumeLogin()
Resumes execution |
boolean |
resumeLogin(IOException exception)
Resumes execution |
boolean |
resumeLogin(UnsupportedCallbackException exception)
Resumes execution |
void |
run()
|
void |
setCorrelationId(String id)
Set the id |
boolean |
startLogin(Subject subject)
Starts the authentication sequence |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openmdx.security.auth.context.spi.AuthenticationContext |
|---|
getName |
| Method Detail |
|---|
public String getCorrelationId()
getCorrelationId in interface AuthenticationContextid's valuepublic void setCorrelationId(String id)
setCorrelationId in interface AuthenticationContextid - The id's value
public static ObjectPool newPool(Configuration loginConfiguration,
String applicationName,
int initialCapacity,
int maximumCapacity,
long maximumWait,
long idleTimeout,
long callbackTimeout,
boolean debug,
Invalidator invalidator)
throws IOException
Authenticator pool
loginConfiguration - the login Configuration URLapplicationName - initialCapacity - maximumCapacity - maximumWait - idleTimeout - callbackTimeout - debug - logger - invalidator -
Authenticator pool
IOException - if the login Configuration can not be
acquiredpublic void run()
run in interface Runnablerun in class Thread
public boolean startLogin(Subject subject)
throws LoginException,
IOException
AuthenticationContext
startLogin in interface AuthenticationContextsubject - the Subject to authenticate,
or null
true if there are no more callbacks to be handled
and login has commpleted successfully.
LoginException - if the login attempt failed
IOException
public boolean continueLogin()
throws LoginException,
IOException
AuthenticationContext
continueLogin in interface AuthenticationContexttrue if there are no more callbacks to be handled
and login has commpleted successfully.
LoginException - if the login process failed
IOException
public boolean restartLogin()
throws LoginException,
IOException
AuthenticationContext
restartLogin in interface AuthenticationContexttrue if there are no more callbacks to be handled
and login has commpleted successfully.
LoginException - if the login attempt failed
IOException
public boolean resumeLogin()
throws LoginException,
IOException
AuthenticationContext
resumeLogin in interface AuthenticationContexttrue if there are no more callbacks to be handled
and login has commpleted successfully.
LoginException - if the login process failed
IOException
public boolean resumeLogin(IOException exception)
throws LoginException,
IOException
AuthenticationContext
resumeLogin in interface AuthenticationContextexception - The IOException which occured during
callback handling.
true if there are no more callbacks to be handled
and the login process has commpleted successfully.
LoginException - if the login process failed
IOException
public boolean resumeLogin(UnsupportedCallbackException exception)
throws LoginException,
IOException
AuthenticationContext
resumeLogin in interface AuthenticationContextexception - The UnsupportedCallbackException which
occured during callback handling.
true if there are no more callbacks to be handled
and the login process has commpleted successfully.
LoginException - if the login process failed
IOExceptionpublic Subject getSubject()
AuthenticationContext
getSubject in interface AuthenticationContextnull.public int getAttempt()
AuthenticationContextLoginContext.
getAttempt in interface AuthenticationContext
public Callback[] getCallbacks()
throws LoginException
AuthenticationContext
getCallbacks in interface AuthenticationContextLoginException - if the callback handler is not ACTIVE
and a LoginException is pending
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||