java.lang.Object
org.eclipse.jetty.security.authentication.LoginAuthenticator
org.eclipse.jetty.ee10.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 Jakarta Authentication to Jetty Security.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator

    org.eclipse.jetty.security.authentication.LoginAuthenticator.LoggedOutAuthentication, org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSent, org.eclipse.jetty.security.authentication.LoginAuthenticator.UserAuthenticationSucceeded

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

    org.eclipse.jetty.security.Authenticator.Configuration, org.eclipse.jetty.security.Authenticator.Factory, org.eclipse.jetty.security.Authenticator.NoOp
  • Field Summary

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

    _loginService

    Fields inherited from interface org.eclipse.jetty.security.Authenticator

    BASIC_AUTH, CERT_AUTH, CERT_AUTH2, DIGEST_AUTH, FORM_AUTH, NEGOTIATE_AUTH, OPENID_AUTH, SPNEGO_AUTH
  • Constructor Summary

    Constructors
    Constructor
    Description
    JaspiAuthenticator(jakarta.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.security.UserIdentity
    login(String username, Object password, org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response)
     
    boolean
    secureResponse(JaspiMessageInfo messageInfo, org.eclipse.jetty.security.AuthenticationState validatedUser)
     
    boolean
    secureResponse(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback, boolean mandatory, org.eclipse.jetty.security.AuthenticationState.Succeeded validatedSucceeded)
     
    void
    setConfiguration(org.eclipse.jetty.security.Authenticator.Configuration configuration)
     
    org.eclipse.jetty.security.AuthenticationState
     
    org.eclipse.jetty.security.AuthenticationState
    validateRequest(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback)
     

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

    getLoginService, logout, updateSession

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.eclipse.jetty.security.Authenticator

    getConstraintAuthentication, prepareRequest
  • Constructor Details

    • JaspiAuthenticator

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

      @Deprecated public JaspiAuthenticator(jakarta.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.Configuration configuration)
      Specified by:
      setConfiguration in interface org.eclipse.jetty.security.Authenticator
      Overrides:
      setConfiguration in class org.eclipse.jetty.security.authentication.LoginAuthenticator
    • getAuthenticationType

      public String getAuthenticationType()
    • login

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

      public org.eclipse.jetty.security.AuthenticationState validateRequest(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback) throws org.eclipse.jetty.security.ServerAuthException
      Throws:
      org.eclipse.jetty.security.ServerAuthException
    • validateRequest

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

      public boolean secureResponse(org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response, org.eclipse.jetty.util.Callback callback, boolean mandatory, org.eclipse.jetty.security.AuthenticationState.Succeeded validatedSucceeded) throws org.eclipse.jetty.security.ServerAuthException
      Throws:
      org.eclipse.jetty.security.ServerAuthException
    • secureResponse

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