Package org.eclipse.jetty.security
Class DefaultAuthenticatorFactory
java.lang.Object
org.eclipse.jetty.security.DefaultAuthenticatorFactory
- All Implemented Interfaces:
Authenticator.Factory
@Deprecated(since="2021-05-27")
public class DefaultAuthenticatorFactory
extends Object
implements Authenticator.Factory
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
The Default Authenticator Factory.
Uses the
Authenticator.AuthConfiguration.getAuthMethod()
to select an Authenticator
from: BasicAuthenticator
DigestAuthenticator
FormAuthenticator
ClientCertAuthenticator
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 ContainerLifeCycle.getBeans(Class)
results for
a service that matches the realm name, else the first LoginService found is used.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAuthenticator
(Server server, ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService) Deprecated.Deprecated.void
setLoginService
(LoginService loginService) Deprecated.
-
Constructor Details
-
DefaultAuthenticatorFactory
public DefaultAuthenticatorFactory()Deprecated.
-
-
Method Details
-
getAuthenticator
public Authenticator getAuthenticator(Server server, ServletContext context, Authenticator.AuthConfiguration configuration, IdentityService identityService, LoginService loginService) Deprecated.- Specified by:
getAuthenticator
in interfaceAuthenticator.Factory
-
getLoginService
Deprecated.- Returns:
- the loginService
-
setLoginService
Deprecated.- Parameters:
loginService
- the loginService to set
-