public class AuthenticationController extends AbstractResourceController
applicationManager, applicationService| Constructor and Description |
|---|
AuthenticationController(ApplicationService applicationService,
ApplicationManager applicationManager) |
| Modifier and Type | Method and Description |
|---|---|
UserEntity |
authenticateUser(String applicationName,
String username,
PasswordEntity password,
URI baseUri)
Authenticates the user with the given
username and password. |
getApplicationpublic AuthenticationController(ApplicationService applicationService, ApplicationManager applicationManager)
public UserEntity authenticateUser(String applicationName, String username, PasswordEntity password, URI baseUri) throws UserNotFoundException, ExpiredCredentialException, InactiveAccountException, InvalidAuthenticationException, OperationFailedException
username and password. Does not generate a token.applicationName - name of the applicationusername - username to authenticate the userpassword - password to authenticate the userbaseUri - Base URI of the REST serviceExpiredCredentialException - if the user's credentials have expired.InactiveAccountException - if the user's account is inactive.InvalidAuthenticationException - if the authentication details provided are not valid, or if the user does not exist.OperationFailedException - if the underlying directory implementation failed to execute the operation.UserNotFoundExceptionCopyright © 2018 Atlassian. All rights reserved.