com.atlassian.crowd.plugin.rest.service.resource
Class AuthenticationResource

java.lang.Object
  extended by com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
      extended by com.atlassian.crowd.plugin.rest.service.resource.AuthenticationResource

public class AuthenticationResource
extends AbstractResource

User Authentication Resource.


Field Summary
 
Fields inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
DEFAULT_SEARCH_RESULT_SIZE, MAX_RESULTS_PARAM, request, START_INDEX_PARAM, uriInfo
 
Constructor Summary
AuthenticationResource(AuthenticationController authenticationController)
           
 
Method Summary
 javax.ws.rs.core.Response authenticateUser(String username, PasswordEntity password)
          Authenticates a user.
 
Methods inherited from class com.atlassian.crowd.plugin.rest.service.resource.AbstractResource
getApplicationName, getBaseUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthenticationResource

public AuthenticationResource(AuthenticationController authenticationController)
Method Detail

authenticateUser

public javax.ws.rs.core.Response authenticateUser(String username,
                                                  PasswordEntity password)
                                           throws ApplicationAccessDeniedException,
                                                  ExpiredCredentialException,
                                                  InactiveAccountException,
                                                  InvalidAuthenticationException,
                                                  OperationFailedException
Authenticates a user. Does not generate an SSO token. See TokenResource for the resource handling SSO.

Parameters:
username - name of the user
password - password of the user
Throws:
ApplicationAccessDeniedException
ExpiredCredentialException
InactiveAccountException
InvalidAuthenticationException
OperationFailedException


Copyright © 2013 Atlassian. All Rights Reserved.