Package org.alfresco.repo.webdav.auth
Interface AuthenticationDriver
- All Known Implementing Classes:
BaseKerberosAuthenticationFilter,BaseSSOAuthenticationFilter,KerberosAuthenticationFilter,KerberosAuthenticationFilter,SSOFallbackBasicAuthenticationDriver
public interface AuthenticationDriver
A general interface for servlet-based authentication. Allows code to be shared by Web Client, WebDAV and Sharepoint authentication classes.
- Author:
- dward
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticateRequest(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Authenticate user based on information in http request such as Authorization header or cached session information.voidrestartLoginChallenge(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Send a status 401 response that will restart the log in handshake.
-
Field Details
-
AUTHENTICATION_USER
- See Also:
-
-
Method Details
-
authenticateRequest
boolean authenticateRequest(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, jakarta.servlet.ServletException Authenticate user based on information in http request such as Authorization header or cached session information.- Parameters:
context- the contextrequest- http requestresponse- http response- Returns:
trueif authentication was successful- Throws:
IOExceptionjakarta.servlet.ServletException
-
restartLoginChallenge
void restartLoginChallenge(jakarta.servlet.ServletContext context, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException Send a status 401 response that will restart the log in handshake.- Parameters:
context- the contextrequest- http requestresponse- http response- Throws:
IOException
-