Package org.eclipse.jetty.security.jaspi
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
ConstructorsConstructorDescriptionJaspiAuthenticator(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 TypeMethodDescriptionorg.eclipse.jetty.server.UserIdentitybooleansecureResponse(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, boolean mandatory, org.eclipse.jetty.server.Authentication.User validatedUser) booleansecureResponse(JaspiMessageInfo messageInfo, org.eclipse.jetty.server.Authentication validatedUser) voidsetConfiguration(org.eclipse.jetty.security.Authenticator.AuthConfiguration configuration) org.eclipse.jetty.server.AuthenticationvalidateRequest(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, boolean mandatory) org.eclipse.jetty.server.AuthenticationvalidateRequest(JaspiMessageInfo messageInfo) Methods inherited from class org.eclipse.jetty.security.authentication.LoginAuthenticator
getLoginService, logout, prepareRequest, renewSession
-
Constructor Details
-
JaspiAuthenticator
-
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:
setConfigurationin interfaceorg.eclipse.jetty.security.Authenticator- Overrides:
setConfigurationin classorg.eclipse.jetty.security.authentication.LoginAuthenticator
-
getAuthMethod
-
login
public org.eclipse.jetty.server.UserIdentity login(String username, Object password, javax.servlet.ServletRequest request) - Overrides:
loginin classorg.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
-