@Named public class AuthenticationController extends AbstractResourceController
Constructor and Description |
---|
AuthenticationController(ApplicationService applicationService,
AuthenticatedApplicationHolder authenticatedApplicationHolder) |
Modifier and Type | Method and Description |
---|---|
UserEntity |
authenticateUser(String username,
PasswordEntity password,
URI baseUri)
Authenticates the user with the given
username and password . |
UserEntity |
userAuthenticated(String username,
URI baseUri) |
getAuthenticatedApplication
@Inject public AuthenticationController(ApplicationService applicationService, AuthenticatedApplicationHolder authenticatedApplicationHolder)
public UserEntity authenticateUser(String username, PasswordEntity password, URI baseUri) throws UserNotFoundException, ExpiredCredentialException, InactiveAccountException, InvalidAuthenticationException, OperationFailedException
username
and password
. Does not generate a token.username
- 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.UserNotFoundException
public UserEntity userAuthenticated(String username, URI baseUri) throws UserNotFoundException, OperationFailedException, InactiveAccountException, InvalidAuthenticationException
Copyright © 2020 Atlassian. All rights reserved.