Class JaspiAuthenticatorFactory

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

public class JaspiAuthenticatorFactory extends DefaultAuthenticatorFactory
  • Constructor Details

    • JaspiAuthenticatorFactory

      public JaspiAuthenticatorFactory()
  • Method Details

    • getServiceSubject

      public Subject getServiceSubject()
      Returns:
      the serviceSubject
    • setServiceSubject

      public void setServiceSubject(Subject serviceSubject)
      Parameters:
      serviceSubject - the serviceSubject to set
    • getServerName

      public String getServerName()
      Returns:
      the serverName
    • setServerName

      public void setServerName(String serverName)
      Parameters:
      serverName - the serverName to set
    • getAuthenticator

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

      protected Subject findServiceSubject(org.eclipse.jetty.server.Server server)
      Find a service Subject. If setServiceSubject(Subject) has not been used to set a subject, then the ContainerLifeCycle.getBeans(Class) method is used to look for a Subject.
      Parameters:
      server - the server to pull the Subject from
      Returns:
      the subject
    • findServerName

      protected String findServerName(org.eclipse.jetty.server.Server server)
      Find a servername. If setServerName(String) has not been called, then use the name of the a principal in the service subject. If not found, return "server".
      Parameters:
      server - the server to find the name of
      Returns:
      the server name from the service Subject (or default value if not found in subject or principals)
    • findServerName

      @Deprecated protected String findServerName(org.eclipse.jetty.server.Server server, Subject subject)
      Deprecated.
      Find a servername. If setServerName(String) has not been called, then use the name of the a principal in the service subject. If not found, return "server".
      Parameters:
      server - the server to use
      subject - not used
      Returns:
      the server name from the subject of the server (or default value if not found in subject or principals)