AeroGear Android Libary 1.0.0.M1

org.jboss.aerogear.android.authentication.impl
Class Authenticator

java.lang.Object
  extended by org.jboss.aerogear.android.authentication.impl.Authenticator

public class Authenticator
extends Object

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
 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
 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

Authenticator

public Authenticator(URL baseURL)

Authenticator

public Authenticator(String baseURL)
Method Detail

get

public AuthenticationModule get(String name)
Gets a AuthenticationModule for name

Parameters:
name -
Returns:
a AuthenticationModule for name or null if there isn't a value for name
Throws:
NullPointerException - is name is null

remove

public AuthenticationModule remove(String name)
Removes a AuthenticationModule for name

Parameters:
name -
Returns:
a AuthenticationModule for name or null if there isn't a value for name
Throws:
NullPointerException - is name is null

auth

public AuthenticationModule auth(String name,
                                 AuthenticationConfig config)
Builds a AuthenticationModule based on the AuthenticationConfig and records it as name

Parameters:
name -
config -
Returns:
a fully operational AuthenticationModule
Throws:
NullPointerException - is config or name is null

AeroGear Android Libary 1.0.0.M1

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.