public interface AuthenticationModule
extends org.jboss.aerogear.android.pipe.module.PipeModule
Pipe so they are
seen as authenticated.| Modifier and Type | Method and Description |
|---|---|
void |
enroll(Map<String,String> userData,
org.jboss.aerogear.android.core.Callback<org.jboss.aerogear.android.pipe.http.HeaderAndBody> callback)
Will try to register a user with a service using userData.
|
URL |
getBaseURL() |
String |
getEnrollEndpoint() |
String |
getLoginEndpoint() |
String |
getLogoutEndpoint() |
boolean |
isLoggedIn() |
void |
login(Map<String,String> loginData,
org.jboss.aerogear.android.core.Callback<org.jboss.aerogear.android.pipe.http.HeaderAndBody> callback)
Will try to log in a user
It will call the callbacks onSuccess with a parameter of a Map of the
values returned by the enroll service or onFailure if there is an error
|
void |
login(String username,
String password,
org.jboss.aerogear.android.core.Callback<org.jboss.aerogear.android.pipe.http.HeaderAndBody> callback)
Will try to log in a user using username and password.
|
void |
logout(org.jboss.aerogear.android.core.Callback<Void> callback)
Performs a logout of the current user.
|
URL getBaseURL()
String getLoginEndpoint()
String getLogoutEndpoint()
String getEnrollEndpoint()
void enroll(Map<String,String> userData, org.jboss.aerogear.android.core.Callback<org.jboss.aerogear.android.pipe.http.HeaderAndBody> callback)
userData - a collection of data to be passed to the server.callback - a callback which will handle the server response.void login(String username, String password, org.jboss.aerogear.android.core.Callback<org.jboss.aerogear.android.pipe.http.HeaderAndBody> callback)
username - the users userNamepassword - the users Passwordcallback - a callback which will handle the server response.void login(Map<String,String> loginData, org.jboss.aerogear.android.core.Callback<org.jboss.aerogear.android.pipe.http.HeaderAndBody> callback)
loginData - a map of data which will be passed to the servercallback - a callback which will handle the server response.void logout(org.jboss.aerogear.android.core.Callback<Void> callback)
callback - a callback which will handle the server response.boolean isLoggedIn()
Copyright © 2016 JBoss by Red Hat. All rights reserved.