org.eclipse.jetty.security
Class DefaultAuthenticatorFactory
java.lang.Object
org.eclipse.jetty.security.DefaultAuthenticatorFactory
- All Implemented Interfaces:
- Authenticator.Factory
- Direct Known Subclasses:
- JaspiAuthenticatorFactory
public class DefaultAuthenticatorFactory
- extends Object
- implements Authenticator.Factory
The Default Authenticator Factory.
Uses the Authenticator.Configuration.getAuthMethod()
to select an Authenticator
from:
If Configuration#isLazy()
is true, the Authenticator is wrapped with a DeferredAuthenticator
instance. The FormAuthenticator is always wrapped in a SessionCachingAuthenticator
.
If a LoginService
has not been set on this factory, then
the service is selected by searching the Server.getBeans(Class)
results for
a service that matches the realm name, else the first LoginService found is used.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAuthenticatorFactory
public DefaultAuthenticatorFactory()
getAuthenticator
public Authenticator getAuthenticator(Server server,
ServletContext context,
Authenticator.Configuration configuration,
IdentityService identityService,
LoginService loginService)
- Specified by:
getAuthenticator
in interface Authenticator.Factory
getLoginService
public LoginService getLoginService()
- Returns:
- the loginService
setLoginService
public void setLoginService(LoginService loginService)
- Parameters:
loginService
- the loginService to set
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.