Class DefaultAuthenticatorFactory

java.lang.Object
org.eclipse.jetty.ee8.security.DefaultAuthenticatorFactory
All Implemented Interfaces:
Authenticator.Factory

public class DefaultAuthenticatorFactory extends Object implements Authenticator.Factory
The Default Authenticator Factory. Uses the 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 ContainerLifeCycle.getBeans(Class) results for a service that matches the realm name, else the first LoginService found is used.

  • Constructor Details

    • DefaultAuthenticatorFactory

      public DefaultAuthenticatorFactory()
  • Method Details

    • getAuthenticator

      public Authenticator getAuthenticator(org.eclipse.jetty.server.Server server, javax.servlet.ServletContext context, Authenticator.AuthConfiguration configuration, org.eclipse.jetty.security.IdentityService identityService, org.eclipse.jetty.security.LoginService loginService)
      Specified by:
      getAuthenticator in interface Authenticator.Factory
    • getLoginService

      public org.eclipse.jetty.security.LoginService getLoginService()
      Returns:
      the loginService
    • setLoginService

      public void setLoginService(org.eclipse.jetty.security.LoginService loginService)
      Parameters:
      loginService - the loginService to set