public abstract class AbstractAuthenticationModule extends Object implements AuthenticationModule
| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD_PARAMETER_NAME |
protected static Executor |
THREAD_POOL_EXECUTOR |
static String |
USERNAME_PARAMETER_NAME |
| Constructor and Description |
|---|
AbstractAuthenticationModule() |
| Modifier and Type | Method and Description |
|---|---|
void |
enroll(Map<String,String> userData,
Callback<HeaderAndBody> callback)
Will try to register a user with a service using userData.
|
void |
login(String username,
String password,
Callback<HeaderAndBody> callback)
Will try to log in a user using username and password.
|
void |
logout(Callback<Void> callback)
Performs a logout of the current user.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAuthorizationFields, getAuthorizationFields, getBaseURL, getEnrollEndpoint, getLoginEndpoint, getLogoutEndpoint, isLoggedIn, login, retryLoginpublic static final String USERNAME_PARAMETER_NAME
public static final String PASSWORD_PARAMETER_NAME
protected static final Executor THREAD_POOL_EXECUTOR
public void enroll(Map<String,String> userData, Callback<HeaderAndBody> callback)
AuthenticationModuleenroll in interface AuthenticationModulepublic void login(String username, String password, Callback<HeaderAndBody> callback)
AuthenticationModulelogin in interface AuthenticationModulepublic void logout(Callback<Void> callback)
AuthenticationModulelogout in interface AuthenticationModuleCopyright © 2013 JBoss by Red Hat. All Rights Reserved.