Class EngineAuthenticationHandlerHolder
java.lang.Object
org.apache.sling.auth.core.impl.PathBasedHolder
org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
org.apache.sling.auth.core.impl.engine.EngineAuthenticationHandlerHolder
- All Implemented Interfaces:
Comparable<org.apache.sling.auth.core.impl.PathBasedHolder>,AuthenticationHandler
public final class EngineAuthenticationHandlerHolder
extends org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
The
EngineAuthenticationHandlerHolder class represents an
old-style Sling AuthenticationHandler service in the internal data
structure of the
SlingAuthenticator.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.sling.auth.core.spi.AuthenticationHandler
AuthenticationHandler.FAILURE_REASON_CODES -
Field Summary
Fields inherited from class org.apache.sling.auth.core.impl.PathBasedHolder
fullPathFields inherited from interface org.apache.sling.auth.core.spi.AuthenticationHandler
FAILURE_REASON, FAILURE_REASON_CODE, PATH_PROPERTY, REQUEST_LOGIN_PARAMETER, SERVICE_NAME, TYPE_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionEngineAuthenticationHandlerHolder(String fullPath, AuthenticationHandler handler, org.osgi.framework.ServiceReference<?> serviceReference) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoDropCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Calls the actual authentication handler to request the credentials from the client.doExtractCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Calls the actual authentication handler to extract the credentials from the request.booleandoRequestCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Calls the actual authentication handler to request the credentials from the client.booleanReturnstrueif 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 AuthenticationFeedbackHandlerReturns a feedback handler provided by the authentication handler held by this instance ornullif none is provided.inthashCode()Returns the hash code of the full path.toString()Methods inherited from class org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
dropCredentials, extractCredentials, requestCredentialsMethods inherited from class org.apache.sling.auth.core.impl.PathBasedHolder
compareTo, isPathRequiresHandler
-
Constructor Details
-
EngineAuthenticationHandlerHolder
public EngineAuthenticationHandlerHolder(String fullPath, AuthenticationHandler handler, org.osgi.framework.ServiceReference<?> serviceReference)
-
-
Method Details
-
getFeedbackHandler
Description copied from class:org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolderReturns a feedback handler provided by the authentication handler held by this instance ornullif none is provided.- Specified by:
getFeedbackHandlerin classorg.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder
-
doExtractCredentials
public AuthenticationInfo doExtractCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from class:org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolderCalls the actual authentication handler to extract the credentials from the request.- Specified by:
doExtractCredentialsin classorg.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder- Parameters:
request- The current requestresponse- The current response- Returns:
- as returned from the called authentication handler
- See Also:
-
AbstractAuthenticationHandlerHolder.extractCredentials(HttpServletRequest, HttpServletResponse)
-
doRequestCredentials
public boolean doRequestCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException Description copied from class:org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolderCalls the actual authentication handler to request the credentials from the client.- Specified by:
doRequestCredentialsin classorg.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder- Parameters:
request- The current requestresponse- The current response- Returns:
- as returned from the called authentication handler
- Throws:
IOException- if an error occurs sending back any response to the client.- See Also:
-
AbstractAuthenticationHandlerHolder.requestCredentials(HttpServletRequest, HttpServletResponse)
-
doDropCredentials
public void doDropCredentials(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) Description copied from class:org.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolderCalls the actual authentication handler to request the credentials from the client.- Specified by:
doDropCredentialsin classorg.apache.sling.auth.core.impl.AbstractAuthenticationHandlerHolder- Parameters:
request- The current requestresponse- The current response- See Also:
-
AbstractAuthenticationHandlerHolder.dropCredentials(HttpServletRequest, HttpServletResponse)
-
hashCode
public int hashCode()Description copied from class:org.apache.sling.auth.core.impl.PathBasedHolderReturns the hash code of the full path.- Overrides:
hashCodein classorg.apache.sling.auth.core.impl.PathBasedHolder
-
equals
Description copied from class:org.apache.sling.auth.core.impl.PathBasedHolderReturnstrueif 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).- Overrides:
equalsin classorg.apache.sling.auth.core.impl.PathBasedHolder
-
toString
-