com.atlassian.crowd.plugin.rest.service.controller
Class AuthenticationController
java.lang.Object
com.atlassian.crowd.plugin.rest.service.controller.AbstractResourceController
com.atlassian.crowd.plugin.rest.service.controller.AuthenticationController
public class AuthenticationController
- extends AbstractResourceController
User authentication controller.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthenticationController
public AuthenticationController(ApplicationService applicationService,
ApplicationManager applicationManager)
authenticateUser
public UserEntity authenticateUser(String applicationName,
String username,
PasswordEntity password,
URI baseUri)
throws UserNotFoundException,
ExpiredCredentialException,
InactiveAccountException,
InvalidAuthenticationException,
OperationFailedException
- Authenticates the user with the given
username
and password
. Does not generate a token.
- Parameters:
applicationName
- name of the applicationusername
- username to authenticate the userpassword
- password to authenticate the userbaseUri
- Base URI of the REST service
- Returns:
- UserEntity if the authentication succeeded
- Throws:
ExpiredCredentialException
- 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.
UserNotFoundException
Copyright © 2013 Atlassian. All Rights Reserved.