public class LocalCrowdAuthenticationProvider extends CrowdAuthenticationProvider
Does not make SOAP calls.
applicationName| Constructor and Description |
|---|
LocalCrowdAuthenticationProvider(Application application,
ApplicationService applicationService,
ApplicationManager applicationManager,
TokenAuthenticationManager tokenAuthenticationManager) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
authenticate(String username,
String password,
ValidationFactor[] validationFactors)
Authenticate a remote user and return the Crowd SSO token string.
|
protected boolean |
isAuthenticated(String token,
ValidationFactor[] validationFactors)
Determine if a remote user is authenticated via SSO based on
the supplied SSO token string and validation factors.
|
protected CrowdUserDetails |
loadUserByToken(String token)
Retrieve a user from Crowd by looking up the principal by their authenticated Crowd token.
|
protected CrowdUserDetails |
loadUserByUsername(String username)
Retreive the user details for a user based on their username.
|
authenticate, authenticateCrowdSSO, authenticateUsernamePassword, supports, supports, translateExceptionpublic LocalCrowdAuthenticationProvider(Application application, ApplicationService applicationService, ApplicationManager applicationManager, TokenAuthenticationManager tokenAuthenticationManager)
protected boolean isAuthenticated(String token, ValidationFactor[] validationFactors) throws InvalidAuthorizationTokenException, ApplicationAccessDeniedException, RemoteException
CrowdAuthenticationProviderisAuthenticated in class CrowdAuthenticationProvidertoken - Crowd SSO token.validationFactors - validation factors.true iff the remote user is authenticated.InvalidAuthorizationTokenException - invalid application client.ApplicationAccessDeniedException - user does not have access to the application.RemoteException - Crowd server error.protected String authenticate(String username, String password, ValidationFactor[] validationFactors) throws InvalidAuthorizationTokenException, InvalidAuthenticationException, InactiveAccountException, ApplicationAccessDeniedException, RemoteException, ExpiredCredentialException
CrowdAuthenticationProviderauthenticate in class CrowdAuthenticationProviderusername - username of the remote user.password - password of the remote user.validationFactors - validation factors from the remote user.InvalidAuthorizationTokenException - invalid application client.InvalidAuthenticationException - invalid username/password.InactiveAccountException - inactive user account.ApplicationAccessDeniedException - user does not have access to the application.RemoteException - Crowd server error.ExpiredCredentialException - The user's credentials have expired. The user must change their credentials in order to successfully authenticate.protected CrowdUserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
CrowdAuthenticationProviderloadUserByUsername in class CrowdAuthenticationProviderusername - username of user.org.springframework.security.core.userdetails.UsernameNotFoundException - user with supplied username does not exist.org.springframework.dao.DataAccessException - error retrieving user.protected CrowdUserDetails loadUserByToken(String token) throws CrowdSSOTokenInvalidException, org.springframework.dao.DataAccessException
CrowdAuthenticationProviderloadUserByToken in class CrowdAuthenticationProvidertoken - Crowd SSO token string.CrowdSSOTokenInvalidException - if the provided token is invalid.org.springframework.dao.DataAccessException - error retrieveing user.Copyright © 2017 Atlassian. All rights reserved.