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
-
Method Summary
Modifier and TypeMethodDescriptionstatic Authenticator
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.static Authenticator
getAuthenticator
(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
-