Class CustomUserAuthenticatorServiceImpl
java.lang.Object
com.skava.service.impl.authenticator.CustomUserAuthenticatorServiceImpl
- All Implemented Interfaces:
UserAuthenticatorService
This service class implements UserAuthenticatorService and handles the user custom 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 custom 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.service.authenticator.UserAuthenticatorService
checkPasswordExpiry
-
Constructor Details
-
CustomUserAuthenticatorServiceImpl
public CustomUserAuthenticatorServiceImpl()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 custom authenticator.- Specified by:
authenticate
in interfaceUserAuthenticatorService
- Parameters:
request
- HoldsUserAuthRequest
object for authenticating the given credentials by custom.userCommonServices
- HoldsUserCommonServices
object for authenticating the given credentials.collectionCommonServices
- holds CollectionCommonServiceseventClientComponent
- holds EventClientComponent- Returns:
- The
UsersEntity
object on successful authentication, else throws the validate exception.
-