public class Authenticator extends Object
| Constructor and Description |
|---|
Authenticator(String baseURL) |
Authenticator(URL baseURL) |
| Modifier and Type | Method and Description |
|---|---|
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
|
public Authenticator(URL baseURL)
public Authenticator(String baseURL)
public AuthenticationModule remove(String name)
name - NullPointerException - is name is nullpublic AuthenticationModule auth(String name, AuthenticationConfig config)
name - config - NullPointerException - is config or name is nullpublic void add(String name, AuthenticationModule module)
public AuthenticationModule get(String name)
name - NullPointerException - is name is nullpublic AuthenticationModule get(String name, android.app.Activity activity)
name - activity - the activity which the Loaders should be bound against.AuthenticationModuleAdapter for nameNullPointerException - is name is nullpublic AuthenticationModule get(String name, android.app.Fragment fragment, android.content.Context applicationContext)
name - fragment - the fragment the Loaders will be bound against.applicationContext - AuthenticationModuleAdapterfor nameNullPointerException - is name is nullpublic 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 nullpublic 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 nullCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.