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_CODES
fullPath
FAILURE_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, requestCredentials
compareTo, hashCode
public EngineAuthenticationHandlerHolder(String fullPath, AuthenticationHandler handler, org.osgi.framework.ServiceReference serviceReference)
protected AuthenticationFeedbackHandler getFeedbackHandler()
AbstractAuthenticationHandlerHolder
null
if none is provided.getFeedbackHandler
in class AbstractAuthenticationHandlerHolder
public AuthenticationInfo doExtractCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
AbstractAuthenticationHandlerHolder
doExtractCredentials
in class AbstractAuthenticationHandlerHolder
request
- The current requestresponse
- The current responseAbstractAuthenticationHandlerHolder.extractCredentials(HttpServletRequest, HttpServletResponse)
public boolean doRequestCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
AbstractAuthenticationHandlerHolder
doRequestCredentials
in class AbstractAuthenticationHandlerHolder
request
- 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)
AbstractAuthenticationHandlerHolder
doDropCredentials
in class AbstractAuthenticationHandlerHolder
request
- The current requestresponse
- The current responseAbstractAuthenticationHandlerHolder.dropCredentials(HttpServletRequest, HttpServletResponse)
public boolean equals(Object obj)
PathBasedHolder
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
).equals
in class PathBasedHolder
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.