Class CrowdApplicationAuthenticationServiceImpl
java.lang.Object
com.atlassian.crowd.service.authentication.CrowdApplicationAuthenticationServiceImpl
- All Implemented Interfaces:
CrowdApplicationAuthenticationService
public class CrowdApplicationAuthenticationServiceImpl
extends Object
implements CrowdApplicationAuthenticationService
-
Constructor Summary
ConstructorsConstructorDescriptionCrowdApplicationAuthenticationServiceImpl(TokenAuthenticationManager tokenAuthenticationManager, CrowdHttpTokenHelper tokenHelper, ApplicationFactory applicationFactory, ClientProperties clientProperties, PropertyManager propertyManager, AuditService auditService, com.atlassian.diagnostics.util.CallingBundleResolver callingBundleResolver, ApplicationService applicationService) -
Method Summary
Modifier and TypeMethodDescriptionvoidauthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username) Authenticates the user to the Crowd application.
-
Constructor Details
-
CrowdApplicationAuthenticationServiceImpl
public CrowdApplicationAuthenticationServiceImpl(TokenAuthenticationManager tokenAuthenticationManager, CrowdHttpTokenHelper tokenHelper, ApplicationFactory applicationFactory, ClientProperties clientProperties, PropertyManager propertyManager, AuditService auditService, com.atlassian.diagnostics.util.CallingBundleResolver callingBundleResolver, ApplicationService applicationService)
-
-
Method Details
-
authenticate
public void authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username) throws ApplicationAccessDeniedException, OperationFailedException, InactiveAccountException, InvalidAuthenticationException Description copied from interface:CrowdApplicationAuthenticationServiceAuthenticates 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.- Specified by:
authenticatein interfaceCrowdApplicationAuthenticationService- Parameters:
request- the currently executed requestresponse- the currently executed responseusername- the name of the user who should be treated as authenticated- Throws:
ApplicationAccessDeniedException- if the user does not have access to authenticate with the Crowd application.OperationFailedException- if the error was thrown by directory implementation when attempting to find or authenticate the user.InactiveAccountException- if the user account is inactive.InvalidAuthenticationException- if the authentication was not successful.
-