com.crankuptheamps.spark
Class DefaultAuthenticatorFactory

java.lang.Object
  extended by com.crankuptheamps.spark.DefaultAuthenticatorFactory
All Implemented Interfaces:
AuthenticatorFactory

public class DefaultAuthenticatorFactory
extends Object
implements AuthenticatorFactory


Constructor Summary
DefaultAuthenticatorFactory()
           
 
Method Summary
 Authenticator createAuthenticator(String uri)
          Create an Authenticator object to use for logging on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAuthenticatorFactory

public DefaultAuthenticatorFactory()
Method Detail

createAuthenticator

public Authenticator createAuthenticator(String uri)
                                  throws AuthenticationException
Description copied from interface: AuthenticatorFactory
Create an Authenticator object to use for logging on. See DefaultAuthenticatorFactory for example implementation.

Specified by:
createAuthenticator in interface AuthenticatorFactory
Parameters:
uri - the unparsed uri that this authenticator should be prepared to authenticate with.
Returns:
A new Authenticator instance
Throws:
AuthenticationException - Thrown if an Authenticator cannot be created.