com.crankuptheamps.spark
Interface AuthenticatorFactory
- All Known Implementing Classes:
- DefaultAuthenticatorFactory
public interface AuthenticatorFactory
For command line custom authenticator support in spark. An implemnter of this interface is loaded using
Class.forName when the fully qualified class name is specified via the -authenticator parameter on the spark command line.
This class is instantiated and its createAuthenticator() method is invoked to create an Authenticator object for logging on.
- Author:
- David
createAuthenticator
Authenticator createAuthenticator(String connectionURI)
throws AuthenticationException
- Create an Authenticator object to use for logging on. See DefaultAuthenticatorFactory for example implementation.
- Parameters:
connectionURI
- 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.