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.
|
Method Summary |
UserEntity |
authenticateUser(java.lang.String applicationName,
java.lang.String username,
PasswordEntity password,
java.net.URI baseUri)
Authenticates the user with the given username and password. |
| 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,
TokenAuthenticationManager tokenAuthenticationManager)
authenticateUser
public UserEntity authenticateUser(java.lang.String applicationName,
java.lang.String username,
PasswordEntity password,
java.net.URI baseUri)
throws 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.
Copyright © 2010 Atlassian. All Rights Reserved.