com.atlassian.bitbucket.auth.AuthenticationService |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Attempts to authenticate the specified user given their password.
| |||||||||||
Attempts to authenticate the specified user given their password.
| |||||||||||
Clears the current authentication, if any, resulting in an anonymous context
| |||||||||||
Sets the authentication for the current thread (and thereby request)
|
Attempts to authenticate the specified user given their password. Failed authentications will not count towards the maximum number allowed before CAPTCHA is imposed for the supplied user.
Note: this method only authenticates; it does not apply the authentication to the current request, nor does it call any authentication success or failure handlers.
username | the username |
---|---|
password | the user's password |
ApplicationUser
representing the authenticated userAuthenticationSystemException | if a failure occurs in Crowd |
---|---|
ExpiredPasswordAuthenticationException | if the user's password has expired and must be changed |
InactiveUserAuthenticationException | if the specified user is inactive |
IncorrectPasswordAuthenticationException | if the provided password is incorrect |
NoSuchUserException | if the specified user does not exist or their user details cannot be retrieved |
Attempts to authenticate the specified user given their password. Failed authentications will count towards
the maximum number allowed before CAPTCHA is imposed for the supplied user. If the maximum number of allowed
failed logins has already been exceeded the method will throw CaptchaRequiredAuthenticationException
Note: this method only authenticates; it does not apply the authentication to the current request, nor does it call any authentication success or failure handlers.
username | the username |
---|---|
password | the user's password |
Authentication
representing the authenticated user and additional propertiesAuthenticationSystemException | if a failure occurs in one of the authentication handlers |
---|---|
CaptchaRequiredAuthenticationException | if CAPTCHA is required |
ExpiredPasswordAuthenticationException | if the user's password has expired and must be changed |
InactiveUserAuthenticationException | if the specified user is inactive |
IncorrectPasswordAuthenticationException | if the provided password is incorrect |
NoSuchUserException | if the specified user does not exist or their user details cannot be retrieved |
Clears the current authentication, if any, resulting in an anonymous context
Sets the authentication for the current thread (and thereby request)
authentication | the authentication to set |
---|