@Service(value=Authenticator.class) @Property(name="service.description",value="Apache Sling Request Authenticator (Legacy Bridge)") @Property(name="service.vendor",value="The Apache Software Foundation") public class EngineSlingAuthenticator extends Object implements Authenticator
EngineSlingAuthenticator class is a simple proxy service
providing the old Sling Engine Authenticator service calling into the
new standalone Apache Sling
AuthenticationSupport service.| Constructor and Description |
|---|
EngineSlingAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
void |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Finds an
AuthenticationHandler for the given request and call its
AuthenticationHandler.requestAuthentication(HttpServletRequest, HttpServletResponse)
method to initiate an authentication process with the client to login to
Sling. |
void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
public void login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
AuthenticatorAuthenticationHandler for the given request and call its
AuthenticationHandler.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
IllegalStateException is thrown.
After this method has finished, request processing should be terminated and the response be considered committed and finished.
login in interface Authenticatorrequest - The object representing the client request.response - The object representing the response to the client.public void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.