Class EngineSlingAuthenticator
- java.lang.Object
-
- org.apache.sling.auth.core.impl.engine.EngineSlingAuthenticator
-
- All Implemented Interfaces:
Authenticator
public class EngineSlingAuthenticator extends Object implements Authenticator
TheEngineSlingAuthenticatorclass is a simple proxy service providing the old Sling EngineAuthenticatorservice calling into the new standalone Apache SlingAuthenticationSupportservice.
-
-
Constructor Summary
Constructors Constructor Description EngineSlingAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Finds anAuthenticationHandlerfor the given request and call itsAuthenticationHandler.requestAuthentication(HttpServletRequest, HttpServletResponse)method to initiate an authentication process with the client to login to Sling.voidlogout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-
-
Method Detail
-
login
public void login(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Description copied from interface:AuthenticatorFinds anAuthenticationHandlerfor the given request and call itsAuthenticationHandler.requestAuthentication(HttpServletRequest, HttpServletResponse)method to initiate an authentication process with the client to login to Sling.This method must be called on an uncommitted response since the implementation may want to reset the response to start the authentication process with a clean response. If the response is already committed an
IllegalStateExceptionis thrown.After this method has finished, request processing should be terminated and the response be considered committed and finished.
- Specified by:
loginin interfaceAuthenticator- Parameters:
request- The object representing the client request.response- The object representing the response to the client.
-
logout
public void logout(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
-
-