Package 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 java.lang.Object implements Authenticator.Factory
The Default Authenticator Factory. Uses theAuthenticator.AuthConfiguration.getAuthMethod()
to select anAuthenticator
from: All authenticators derived fromLoginAuthenticator
are wrapped with aDeferredAuthentication
instance, which is used if authentication is not mandatory. The Authentications from theFormAuthenticator
are always wrapped in aSessionAuthentication
If a
LoginService
has not been set on this factory, then the service is selected by searching theContainerLifeCycle.getBeans(Class)
results for a service that matches the realm name, else the first LoginService found is used.
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthenticatorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Authenticator
getAuthenticator(Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService)
LoginService
getLoginService()
void
setLoginService(LoginService loginService)
-
-
-
Method Detail
-
getAuthenticator
public Authenticator getAuthenticator(Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService)
- Specified by:
getAuthenticator
in interfaceAuthenticator.Factory
-
getLoginService
public LoginService getLoginService()
- Returns:
- the loginService
-
setLoginService
public void setLoginService(LoginService loginService)
- Parameters:
loginService
- the loginService to set
-
-