CONFIGURATION - The concrete implementation of this configuration.public abstract class AuthenticationConfiguration<CONFIGURATION extends AuthenticationConfiguration<CONFIGURATION>> extends Object implements org.jboss.aerogear.android.Config<CONFIGURATION>
| Constructor and Description |
|---|
AuthenticationConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CONFIGURATION |
addOnAuthenticationCreatedListener(OnAuthenticationCreatedListener listener)
OnAuthenticationCreatedListeners are a collection of classes to be
notified when the configuration of the Pipe is complete.
|
AuthenticationModule |
asModule()
Creates a authenticationModule based on the current configuration and
notifies all listeners
|
CONFIGURATION |
baseURL(URL baseURL)
The baseURL is the URL that any endpoints (for example, login, logout,
enroll etc) will be build on.
|
protected abstract AuthenticationModule |
buildModule()
Validates configuration parameters and returns a AuthenticationModule
instance.
|
URL |
getBaseUrl()
The baseURL is the URL that any endpoints (for example, login, logout,
enroll etc) will be build on.
|
String |
getName()
The name is the lookup parameter which will be used by
AuthenticationManager.getModule(java.lang.String). |
Collection<OnAuthenticationCreatedListener> |
getOnAuthenticationCreatedListeners()
OnAuthenticationCreatedListeners are a collection of classes to be
notified when the configuration of the Pipe is complete.
|
CONFIGURATION |
setName(String name)
The name is the lookup parameter which will be used by
AuthenticationManager.getModule(java.lang.String). |
CONFIGURATION |
setOnAuthenticationCreatedListeners(Collection<OnAuthenticationCreatedListener> listeners)
OnAuthenticationCreatedListeners are a collection of classes to be
notified when the configuration of the Pipe is complete.
|
public String getName()
AuthenticationManager.getModule(java.lang.String). It is automatically registered when the module is built.getName in interface org.jboss.aerogear.android.Config<CONFIGURATION extends AuthenticationConfiguration<CONFIGURATION>>public CONFIGURATION setName(String name)
AuthenticationManager.getModule(java.lang.String). It is automatically registered when the module is built.setName in interface org.jboss.aerogear.android.Config<CONFIGURATION extends AuthenticationConfiguration<CONFIGURATION>>name - a new name.public Collection<OnAuthenticationCreatedListener> getOnAuthenticationCreatedListeners()
public CONFIGURATION addOnAuthenticationCreatedListener(OnAuthenticationCreatedListener listener)
listener - new listener to add to the collectionpublic CONFIGURATION setOnAuthenticationCreatedListeners(Collection<OnAuthenticationCreatedListener> listeners)
listeners - new collection to replace the current onepublic final AuthenticationModule asModule()
IllegalStateException - if the AuthenticationModule can not be
constructed.protected abstract AuthenticationModule buildModule()
IllegalStateException - if the Pipe can not be constructed.public URL getBaseUrl()
public CONFIGURATION baseURL(URL baseURL)
baseURL - a new baseURLCopyright © 2014 JBoss by Red Hat. All rights reserved.