Interface CrowdApplicationAuthenticationService
- All Known Implementing Classes:
CrowdApplicationAuthenticationServiceImpl
public interface CrowdApplicationAuthenticationService
Service for creating persistent sessions for specified users.
- Since:
- 6.2
-
Method Summary
Modifier and TypeMethodDescriptionvoid
authenticate
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username) Authenticates the user to the Crowd application.
-
Method Details
-
authenticate
void authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username) throws ApplicationAccessDeniedException, OperationFailedException, InactiveAccountException, InvalidAuthenticationException Authenticates the user to the Crowd application. This method will result in generating a Crowd session token, which can be used to access the Crowd application. The user's credentials will not be verified, it is the caller's responsibility to ensure the user can authenticate.- Parameters:
request
- the currently executed requestresponse
- the currently executed responseusername
- the name of the user who should be treated as authenticated- Throws:
InvalidAuthenticationException
- if the authentication was not successful.OperationFailedException
- if the error was thrown by directory implementation when attempting to find or authenticate the user.InactiveAccountException
- if the user account is inactive.ApplicationAccessDeniedException
- if the user does not have access to authenticate with the Crowd application.
-