|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.aerogear.android.authentication.impl.Authenticator
public class Authenticator
This is the default implementation of Authenticator. It uses a HashMap behind the scenes to store its modules.
As a note, you should NOT extend this class for production or application purposes. This class is made non-final ONLY for testing/mocking/academic purposes.
| Constructor Summary | |
|---|---|
Authenticator(String baseURL)
|
|
Authenticator(URL baseURL)
|
|
| Method Summary | |
|---|---|
void |
add(String name,
AuthenticationModule module)
|
AuthenticationModule |
auth(String name,
AuthenticationConfig config)
Builds a AuthenticationModule based on the AuthenticationConfig and records it as name |
AuthenticationModule |
get(String name)
Gets a AuthenticationModule for name This method should NOT be called by Activities or Fragments. |
AuthenticationModule |
get(String name,
android.app.Activity activity)
Gets a AuthenticationModule for name. |
AuthenticationModule |
get(String name,
android.support.v4.app.FragmentActivity activity)
Gets a AuthenticationModule for name. |
AuthenticationModule |
get(String name,
android.app.Fragment fragment,
android.content.Context applicationContext)
Gets a AuthenticationModule for name. |
AuthenticationModule |
get(String name,
android.support.v4.app.Fragment fragment,
android.content.Context applicationContext)
Gets a AuthenticationModule for name. |
AuthenticationModule |
remove(String name)
Removes a AuthenticationModule for name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Authenticator(URL baseURL)
public Authenticator(String baseURL)
| Method Detail |
|---|
public AuthenticationModule remove(String name)
name -
NullPointerException - is name is null
public AuthenticationModule auth(String name,
AuthenticationConfig config)
name - config -
NullPointerException - is config or name is null
public void add(String name,
AuthenticationModule module)
public AuthenticationModule get(String name)
name -
NullPointerException - is name is null
public AuthenticationModule get(String name,
android.app.Activity activity)
name - activity - the activity which the Loaders should be bound against.
AuthenticationModuleAdapter for name
NullPointerException - is name is null
public AuthenticationModule get(String name,
android.app.Fragment fragment,
android.content.Context applicationContext)
name - fragment - the fragment the Loaders will be bound against.applicationContext -
AuthenticationModuleAdapterfor name
NullPointerException - is name is null
public AuthenticationModule get(String name,
android.support.v4.app.FragmentActivity activity)
name - activity - the activity which the Loaders should be bound against.
NullPointerException - is name is null
public AuthenticationModule get(String name,
android.support.v4.app.Fragment fragment,
android.content.Context applicationContext)
name - fragment - the fragment the Loaders will be bound against.applicationContext -
NullPointerException - is name is null
|
AeroGear Android Library 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||