Package org.conical.common.bbl.auth
Class AuthFactory
java.lang.Object
org.conical.common.bbl.auth.AuthFactory
Responsible for returning an implementation of Authenticator appropriate for the
given
AuthConfig.- Author:
- rdoherty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticatorReturns the default Authenticator, which connects to a database using the BBL standard JNDI name under which a data source to the BBL authentication database should be registered.static AuthenticatorgetAuthenticator(AuthConfig config) Checks config and returns an appropriateAuthenticator.
-
Constructor Details
-
AuthFactory
public AuthFactory()
-
-
Method Details
-
getAuthenticator
Returns the default Authenticator, which connects to a database using the BBL standard JNDI name under which a data source to the BBL authentication database should be registered.- Returns:
- default Authenticator
- Throws:
AuthenticationException- if error occurs creating Authenticator
-
getAuthenticator
Checks config and returns an appropriateAuthenticator.- Parameters:
config- config for which to create an Authenticator- Returns:
- appropriate Authenticator
- Throws:
AuthenticationException- if error occurs creating AuthenticatorUnsupportedOperationException- if AuthConfig type is not supported
-