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 AuthenticationModuleuserData - a collection of data to be passed to the server.callback - a callback which will handle the server response.public void login(String username, String password, Callback<HeaderAndBody> callback)
AuthenticationModulelogin in interface AuthenticationModuleusername - the users userNamepassword - the users Passwordcallback - a callback which will handle the server response.public void logout(Callback<Void> callback)
AuthenticationModulelogout in interface AuthenticationModulecallback - a callback which will handle the server response.Copyright © 2014 JBoss by Red Hat. All rights reserved.