public interface AuthenticationModule
Pipe so they are
seen as authenticated.| 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.
|
AuthorizationFields |
getAuthorizationFields()
This method is called be
Pipe implementations when they need
security applied to their HttpProvider. |
URL |
getBaseURL() |
String |
getEnrollEndpoint() |
String |
getLoginEndpoint() |
String |
getLogoutEndpoint() |
boolean |
isLoggedIn() |
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.
|
URL getBaseURL()
String getLoginEndpoint()
String getLogoutEndpoint()
String getEnrollEndpoint()
void enroll(Map<String,String> userData, Callback<HeaderAndBody> callback)
userData - callback - void login(String username, String password, Callback<HeaderAndBody> callback)
username - password - callback - void logout(Callback<Void> callback)
callback - boolean isLoggedIn()
AuthorizationFields getAuthorizationFields()
Pipe implementations when they need
security applied to their HttpProvider. The headers/data/query
parameters returned should be applied to the Url and HttpProvider
directly before a call.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.