Package org.alfresco.repo.webdav.auth
Interface AuthenticationDriver
-
- All Known Implementing Classes:
BaseKerberosAuthenticationFilter,BaseSSOAuthenticationFilter,KerberosAuthenticationFilter,KerberosAuthenticationFilter,SSOFallbackBasicAuthenticationDriver
public interface AuthenticationDriverA general interface for servlet-based authentication. Allows code to be shared by Web Client, WebDAV and Sharepoint authentication classes.- Author:
- dward
-
-
Field Summary
Fields Modifier and Type Field Description static StringAUTHENTICATION_USER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanauthenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Authenticate user based on information in http request such as Authorization header or cached session information.voidrestartLoginChallenge(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)Send a status 401 response that will restart the log in handshake.
-
-
-
Field Detail
-
AUTHENTICATION_USER
static final String AUTHENTICATION_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticateRequest
boolean authenticateRequest(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletExceptionAuthenticate 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:
IOExceptionjavax.servlet.ServletException
-
restartLoginChallenge
void restartLoginChallenge(javax.servlet.ServletContext context, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOExceptionSend a status 401 response that will restart the log in handshake.- Parameters:
context- the contextrequest- http requestresponse- http response- Throws:
IOException
-
-