@Service(value="authenticationManagement") public class AuthenticationManagementImpl extends AuthenticationManagementBase
AuthenticationManagement| Constructor and Description |
|---|
AuthenticationManagementImpl() |
| Modifier and Type | Method and Description |
|---|---|
UserDetails |
checkLocalUserPasswordOnLogin(String username,
String password)
Check the password of a local user for a match with a given clear text password.
|
protected User |
handleOnSuccessfulAuthentication(org.springframework.security.core.Authentication authentication)
Performs the core logic for
AuthenticationManagementBase.onSuccessfulAuthentication(Authentication) |
protected void |
handleOnSuccessfulAuthentication(Long userId) |
protected void |
handleValidateUserLogin(Long userId) |
void |
onUsernamePasswordAuthenticationFailed(String username)
Should be called if a username and password authentication for a user failed because of a
wrong password.
|
void |
onUsernamePasswordAuthenticationFailed(String externalUserId,
String externalSystemId)
Should be called if a username and password authentication for a user failed because of a
wrong password.
|
onSuccessfulAuthentication, onSuccessfulAuthentication, validateUserLogin@Transactional(propagation=REQUIRED) public UserDetails checkLocalUserPasswordOnLogin(String username, String password) throws UserNotFoundException, AccountNotActivatedException, AuthAgainstInternalDBWhileExternalUserAccountException
AuthenticationManagementusername - the login name which can be the alias or the email address of the userpassword - the clear text password to test againstUserNotFoundException - in case the user does not existAccountNotActivatedException - in case the user account is not activeAuthAgainstInternalDBWhileExternalUserAccountException - in case the user was provided by the active primary external user repositoryprotected User handleOnSuccessfulAuthentication(org.springframework.security.core.Authentication authentication)
AuthenticationManagementBaseAuthenticationManagementBase.onSuccessfulAuthentication(Authentication)handleOnSuccessfulAuthentication in class AuthenticationManagementBase@Transactional(propagation=NEVER) protected void handleOnSuccessfulAuthentication(Long userId) throws UserNotFoundException
handleOnSuccessfulAuthentication in class AuthenticationManagementBaseUserNotFoundExceptionprotected void handleValidateUserLogin(Long userId) throws UserNotFoundException, AccountNotActivatedException, AccountTemporarilyLockedException, AccountPermanentlyLockedException, TermsNotAcceptedException, AccountPermanentlyDisabledException, AccountTemporarilyDisabledException
handleValidateUserLogin in class AuthenticationManagementBaseUserNotFoundExceptionAccountNotActivatedExceptionAccountTemporarilyLockedExceptionAccountPermanentlyLockedExceptionTermsNotAcceptedExceptionAccountPermanentlyDisabledExceptionAccountTemporarilyDisabledExceptionpublic void onUsernamePasswordAuthenticationFailed(String username)
AuthenticationManagementusername - the internal login name (e-mail or alias) of the user whose authentication failedpublic void onUsernamePasswordAuthenticationFailed(String externalUserId, String externalSystemId)
AuthenticationManagementexternalUserId - the login name of the user in the external system whose authentication failedexternalSystemId - the ID of the external systemCopyright © 2019 Communote team. All rights reserved.