public class DefaultAuthenticatorFactory extends Object implements Authenticator.Factory
Authenticator.AuthConfiguration.getAuthMethod() to select an Authenticator from:
All authenticators derived from LoginAuthenticator are
wrapped with a DeferredAuthentication
instance, which is used if authentication is not mandatory.
The Authentications from the FormAuthenticator are always wrapped in a
SessionAuthentication
If a LoginService has not been set on this factory, then
the service is selected by searching the AggregateLifeCycle.getBeans(Class) results for
a service that matches the realm name, else the first LoginService found is used.
| Constructor and Description |
|---|
DefaultAuthenticatorFactory() |
| Modifier and Type | Method and Description |
|---|---|
Authenticator |
getAuthenticator(Server server,
javax.servlet.ServletContext context,
Authenticator.AuthConfiguration configuration,
IdentityService identityService,
LoginService loginService) |
LoginService |
getLoginService() |
void |
setLoginService(LoginService loginService) |
public Authenticator getAuthenticator(Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService)
getAuthenticator in interface Authenticator.Factorypublic LoginService getLoginService()
public void setLoginService(LoginService loginService)
loginService - the loginService to setCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.