@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
AuthenticationManagement
username
- 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)
AuthenticationManagementBase
AuthenticationManagementBase.onSuccessfulAuthentication(Authentication)
handleOnSuccessfulAuthentication
in class AuthenticationManagementBase
@Transactional(propagation=NEVER) protected void handleOnSuccessfulAuthentication(Long userId) throws UserNotFoundException
handleOnSuccessfulAuthentication
in class AuthenticationManagementBase
UserNotFoundException
protected void handleValidateUserLogin(Long userId) throws UserNotFoundException, AccountNotActivatedException, AccountTemporarilyLockedException, AccountPermanentlyLockedException, TermsNotAcceptedException, AccountPermanentlyDisabledException, AccountTemporarilyDisabledException
handleValidateUserLogin
in class AuthenticationManagementBase
UserNotFoundException
AccountNotActivatedException
AccountTemporarilyLockedException
AccountPermanentlyLockedException
TermsNotAcceptedException
AccountPermanentlyDisabledException
AccountTemporarilyDisabledException
public void onUsernamePasswordAuthenticationFailed(String username)
AuthenticationManagement
username
- the internal login name (e-mail or alias) of the user whose authentication failedpublic void onUsernamePasswordAuthenticationFailed(String externalUserId, String externalSystemId)
AuthenticationManagement
externalUserId
- 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.