Class JaspiAuthenticator

java.lang.Object
org.eclipse.jetty.security.authentication.LoginAuthenticator
org.eclipse.jetty.security.jaspi.JaspiAuthenticator
All Implemented Interfaces:
org.eclipse.jetty.security.Authenticator

public class JaspiAuthenticator extends org.eclipse.jetty.security.authentication.LoginAuthenticator
Implementation of Jetty LoginAuthenticator that is a bridge from Javax Authentication to Jetty Security.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.security.Authenticator

    org.eclipse.jetty.security.Authenticator.AuthConfiguration, org.eclipse.jetty.security.Authenticator.Factory
  • Field Summary

    Fields inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator

    _loginService
  • Constructor Summary

    Constructors
    Constructor
    Description
    JaspiAuthenticator(javax.security.auth.message.config.ServerAuthConfig authConfig, Map authProperties, ServletCallbackHandler callbackHandler, Subject serviceSubject, boolean allowLazyAuthentication, org.eclipse.jetty.security.IdentityService identityService)
    Deprecated.
    JaspiAuthenticator(Subject serviceSubject, String appContext, boolean allowLazyAuthentication)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    org.eclipse.jetty.server.UserIdentity
    login(String username, Object password, javax.servlet.ServletRequest request)
     
    boolean
    secureResponse(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, boolean mandatory, org.eclipse.jetty.server.Authentication.User validatedUser)
     
    boolean
    secureResponse(JaspiMessageInfo messageInfo, org.eclipse.jetty.server.Authentication validatedUser)
     
    void
    setConfiguration(org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration)
     
    org.eclipse.jetty.server.Authentication
    validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatory)
     
    org.eclipse.jetty.server.Authentication
     

    Methods inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator

    getLoginService, logout, prepareRequest, renewSession

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JaspiAuthenticator

      public JaspiAuthenticator(Subject serviceSubject, String appContext, boolean allowLazyAuthentication)
    • JaspiAuthenticator

      @Deprecated public JaspiAuthenticator(javax.security.auth.message.config.ServerAuthConfig authConfig, Map authProperties, ServletCallbackHandler callbackHandler, Subject serviceSubject, boolean allowLazyAuthentication, org.eclipse.jetty.security.IdentityService identityService)
      Deprecated.
  • Method Details

    • setConfiguration

      public void setConfiguration(org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration)
      Specified by:
      setConfiguration in interface org.eclipse.jetty.security.Authenticator
      Overrides:
      setConfiguration in class org.eclipse.jetty.security.authentication.LoginAuthenticator
    • getAuthMethod

      public String getAuthMethod()
    • login

      public org.eclipse.jetty.server.UserIdentity login(String username, Object password, javax.servlet.ServletRequest request)
      Overrides:
      login in class org.eclipse.jetty.security.authentication.LoginAuthenticator
    • validateRequest

      public org.eclipse.jetty.server.Authentication validateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatory) throws org.eclipse.jetty.security.ServerAuthException
      Throws:
      org.eclipse.jetty.security.ServerAuthException
    • validateRequest

      public org.eclipse.jetty.server.Authentication validateRequest(JaspiMessageInfo messageInfo) throws org.eclipse.jetty.security.ServerAuthException
      Throws:
      org.eclipse.jetty.security.ServerAuthException
    • secureResponse

      public boolean secureResponse(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, boolean mandatory, org.eclipse.jetty.server.Authentication.User validatedUser) throws org.eclipse.jetty.security.ServerAuthException
      Throws:
      org.eclipse.jetty.security.ServerAuthException
    • secureResponse

      public boolean secureResponse(JaspiMessageInfo messageInfo, org.eclipse.jetty.server.Authentication validatedUser) throws org.eclipse.jetty.security.ServerAuthException
      Throws:
      org.eclipse.jetty.security.ServerAuthException