Class DefaultUserAuthenticatorServiceImpl
java.lang.Object
com.skava.service.impl.authenticator.DefaultUserAuthenticatorServiceImpl
- All Implemented Interfaces:
UserAuthenticatorService
@Transactional(propagation=REQUIRED,
readOnly=false)
public class DefaultUserAuthenticatorServiceImpl
extends Object
implements UserAuthenticatorService
This service class implements UserAuthenticatorService and handles the user default login service request,
process it and save the details in DB. It also implements business logic required for user login request.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices) This method is used to authenticate the given credentials by default authenticator.authenticate
(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, com.skava.core.event.EventClientComponent eventClientComponent) This method is used to authenticate the given credentials by default authenticator.boolean
checkPasswordExpiry
(UserAuthRequest request, CollectionCommonServices collectionCommonServices, UserCommonServices userCommonServices, AuthenticationConfig authenticationConfig) This method is used to check password is expiry or not in MFA Flow
-
Constructor Details
-
DefaultUserAuthenticatorServiceImpl
public DefaultUserAuthenticatorServiceImpl()Default Constructor
-
-
Method Details
-
authenticate
public AuthenticatedUser authenticate(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices, CollectionCommonServices collectionCommonServices, com.skava.core.event.EventClientComponent eventClientComponent) This method is used to authenticate the given credentials by default authenticator.- Specified by:
authenticate
in interfaceUserAuthenticatorService
- Parameters:
request
- HoldsUserAuthRequest
object for authenticating the given credentials by default.userCommonServices
- HoldsUserCommonServices
object for authenticating the given credentials.collectionCommonServices
- holds CollectionCommonServiceseventClientComponent
- holds EventClientComponentauthenticationConfig
- HoldsAuthenticationConfig
object.- Returns:
- The
UsersEntity
object on successful authentication, else throws the validate exception.
-
authenticate
public AuthenticatedUser authenticate(UserAuthRequest request, AuthenticationConfig authenticationConfig, UserCommonServices userCommonServices) This method is used to authenticate the given credentials by default authenticator.- Specified by:
authenticate
in interfaceUserAuthenticatorService
- Parameters:
request
- HoldsUserAuthRequest
object for authenticating the given credentials by default.authenticationConfig
-userCommonServices
- HoldsUserCommonServices
object for authenticating the given credentials.- Returns:
- The
UsersEntity
object on successful authentication, else throws the validate exception.
-
checkPasswordExpiry
public boolean checkPasswordExpiry(UserAuthRequest request, CollectionCommonServices collectionCommonServices, UserCommonServices userCommonServices, AuthenticationConfig authenticationConfig) This method is used to check password is expiry or not in MFA Flow- Specified by:
checkPasswordExpiry
in interfaceUserAuthenticatorService
- Parameters:
request
- HoldsUserAuthRequest
object for authenticating the given credentials by default.collectionCommonServices
- holds CollectionCommonServicesuserCommonServices
- HoldsUserCommonServices
object for authenticating the given credentials.authenticationConfig
- holds AuthenticationConfig- Returns:
- boolean
-