Class JaspiAuthenticator
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.UserAuthenticationSucceededNested 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
_loginServiceFields 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
ConstructorsConstructorDescriptionJaspiAuthenticator(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 TypeMethodDescriptionorg.eclipse.jetty.security.UserIdentitylogin(String username, Object password, org.eclipse.jetty.server.Request request, org.eclipse.jetty.server.Response response) booleansecureResponse(JaspiMessageInfo messageInfo, org.eclipse.jetty.security.AuthenticationState validatedUser) booleansecureResponse(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) voidsetConfiguration(org.eclipse.jetty.security.Authenticator.Configuration configuration) org.eclipse.jetty.security.AuthenticationStatevalidateRequest(JaspiMessageInfo messageInfo) org.eclipse.jetty.security.AuthenticationStatevalidateRequest(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, updateSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.jetty.security.Authenticator
getConstraintAuthentication, prepareRequest
-
Constructor Details
-
JaspiAuthenticator
-
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:
setConfigurationin interfaceorg.eclipse.jetty.security.Authenticator- Overrides:
setConfigurationin classorg.eclipse.jetty.security.authentication.LoginAuthenticator
-
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:
loginin classorg.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
-