public abstract class AbstractAuthenticationModuleRunner extends Object
| Modifier and Type | Field and Description |
|---|---|
protected URL |
baseURL |
protected String |
enrollEndpoint |
protected URL |
enrollURL |
protected org.jboss.aerogear.android.core.Provider<org.jboss.aerogear.android.pipe.http.HttpProvider> |
httpProviderFactory |
protected String |
loginEndpoint |
protected URL |
loginURL |
protected String |
logoutEndpoint |
protected URL |
logoutURL |
protected Integer |
timeout |
| Constructor and Description |
|---|
AbstractAuthenticationModuleRunner(URL baseURL,
String loginEndpoint,
String logoutEndpoint,
String enrollEndpoint,
Integer timeout) |
| Modifier and Type | Method and Description |
|---|---|
URI |
getBaseURI() |
URL |
getBaseURL() |
String |
getEnrollEndpoint() |
String |
getLoginEndpoint() |
String |
getLogoutEndpoint() |
abstract org.jboss.aerogear.android.pipe.http.HeaderAndBody |
onEnroll(Map<String,String> userData) |
abstract org.jboss.aerogear.android.pipe.http.HeaderAndBody |
onLogin(String username,
String password) |
abstract void |
onLogout() |
protected final URL baseURL
protected final String enrollEndpoint
protected final URL enrollURL
protected final org.jboss.aerogear.android.core.Provider<org.jboss.aerogear.android.pipe.http.HttpProvider> httpProviderFactory
protected final String loginEndpoint
protected final URL loginURL
protected final String logoutEndpoint
protected final URL logoutURL
protected final Integer timeout
public AbstractAuthenticationModuleRunner(URL baseURL, String loginEndpoint, String logoutEndpoint, String enrollEndpoint, Integer timeout)
baseURL - the url that all of the other URLs (enroll, login, etc) will be appended to.loginEndpoint - the login EndpointlogoutEndpoint - the logout EndpointenrollEndpoint - the enrollEndpointtimeout - the timeoutIllegalArgumentException - if an endpoint can not be appended to
baseURLpublic URL getBaseURL()
public URI getBaseURI()
public String getEnrollEndpoint()
public String getLoginEndpoint()
public String getLogoutEndpoint()
public abstract org.jboss.aerogear.android.pipe.http.HeaderAndBody onEnroll(Map<String,String> userData)
public abstract org.jboss.aerogear.android.pipe.http.HeaderAndBody onLogin(String username, String password)
public abstract void onLogout()
Copyright © 2016 JBoss by Red Hat. All rights reserved.