public final class EngineAuthenticationHandlerHolder extends AbstractAuthenticationHandlerHolder
EngineAuthenticationHandlerHolder class represents an
old-style Sling AuthenticationHandler service in the internal data
structure of the
SlingAuthenticator.AuthenticationHandler.FAILURE_REASON_CODESfullPathFAILURE_REASON, FAILURE_REASON_CODE, PATH_PROPERTY, REQUEST_LOGIN_PARAMETER, SERVICE_NAME, TYPE_PROPERTY| Constructor and Description |
|---|
EngineAuthenticationHandlerHolder(String fullPath,
AuthenticationHandler handler,
org.osgi.framework.ServiceReference serviceReference) |
| Modifier and Type | Method and Description |
|---|---|
void |
doDropCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls the actual authentication handler to request the credentials from
the client.
|
AuthenticationInfo |
doExtractCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls the actual authentication handler to extract the credentials from
the request.
|
boolean |
doRequestCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Calls the actual authentication handler to request the credentials from
the client.
|
boolean |
equals(Object obj)
Returns
true if the other object is the same as this or if
it is an instance of the same class with the same full path and the same
provider (ServiceReference). |
protected AuthenticationFeedbackHandler |
getFeedbackHandler()
Returns a feedback handler provided by the authentication handler held by
this instance or
null if none is provided. |
String |
toString() |
dropCredentials, extractCredentials, requestCredentialscompareTo, hashCodepublic EngineAuthenticationHandlerHolder(String fullPath, AuthenticationHandler handler, org.osgi.framework.ServiceReference serviceReference)
protected AuthenticationFeedbackHandler getFeedbackHandler()
AbstractAuthenticationHandlerHoldernull if none is provided.getFeedbackHandler in class AbstractAuthenticationHandlerHolderpublic AuthenticationInfo doExtractCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AbstractAuthenticationHandlerHolderdoExtractCredentials in class AbstractAuthenticationHandlerHolderrequest - The current requestresponse - The current responseAbstractAuthenticationHandlerHolder.extractCredentials(HttpServletRequest, HttpServletResponse)public boolean doRequestCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
AbstractAuthenticationHandlerHolderdoRequestCredentials in class AbstractAuthenticationHandlerHolderrequest - The current requestresponse - The current responseIOException - if an error occurs sending back any response to the
client.AbstractAuthenticationHandlerHolder.requestCredentials(HttpServletRequest, HttpServletResponse)public void doDropCredentials(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
AbstractAuthenticationHandlerHolderdoDropCredentials in class AbstractAuthenticationHandlerHolderrequest - The current requestresponse - The current responseAbstractAuthenticationHandlerHolder.dropCredentials(HttpServletRequest, HttpServletResponse)public boolean equals(Object obj)
PathBasedHoldertrue if the other object is the same as this or if
it is an instance of the same class with the same full path and the same
provider (ServiceReference).equals in class PathBasedHolderCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.