|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.security.auth.client.spi.AbstractLoginClient
public abstract class AbstractLoginClient
Abstract Login Client
| Field Summary | |
|---|---|
protected static int |
CANCELLED
Authentication failed |
protected static int |
FAILED
Authentication failed |
protected static int |
SUCCESS
Authentication succeeded |
| Constructor Summary | |
|---|---|
protected |
AbstractLoginClient()
Constructor |
| Method Summary | ||
|---|---|---|
protected
|
abort(String phase,
Exception cause)
Terminate the launcher with an exception stack on the terminal window |
|
protected abstract CallbackHandler |
getCallbackHandler()
Retrieve the callback handler |
|
protected Configuration |
getLoginConfiguration()
Create a new login configuration |
|
protected LoginContext |
getLoginContext()
Create a new login context |
|
protected int |
getLoginLimit()
Define the maximal number of retries |
|
protected String |
getName()
Provider the client name |
|
protected static
|
getSingleton(Class<T> elementClass,
Set<T> set)
Retrieve a single value out of a set |
|
protected void |
handle(LoginException exception)
Log the exception |
|
protected boolean |
login(LoginContext loginContext)
Log-in |
|
protected CallbackHandler |
newCallbackHandler()
Create a callback handler, which may be amended by a sub-class. |
|
void |
run()
Implements Runnable |
|
protected abstract void |
run(Subject subject)
This method is executed while the user is logged in. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int SUCCESS
protected static final int CANCELLED
protected static final int FAILED
| Constructor Detail |
|---|
protected AbstractLoginClient()
| Method Detail |
|---|
protected <T> T abort(String phase,
Exception cause)
phase - the phase during which the error occurredcause - the reason for the abort
nullprotected abstract CallbackHandler getCallbackHandler()
protected CallbackHandler newCallbackHandler()
protected Configuration getLoginConfiguration()
protected LoginContext getLoginContext()
protected String getName()
protected int getLoginLimit()
protected boolean login(LoginContext loginContext)
loginContext - the context to be used to log-in
true if log-in succeeded,
false if log-in has been canceled.protected void handle(LoginException exception)
exception - protected abstract void run(Subject subject)
subject - the authenticated subjectpublic void run()
Runnable
run in interface Runnable
protected static <T> T getSingleton(Class<T> elementClass,
Set<T> set)
elementClass - set -
IllegalArgumentException - if the set's size is not equal to one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||