Class CreateClientSessionServiceImpl
java.lang.Object
com.skava.auth.service.impl.session.CreateClientSessionServiceImpl
- All Implemented Interfaces:
CreateClientSessionService
,com.skava.core.EcommService<ClientSessionRequest,
ClientSessionResponse>
@Service
public class CreateClientSessionServiceImpl
extends Object
implements CreateClientSessionService
This serivce class implements CreateClientSessionService and handles the client session creation service
request, process it and retrieve the details from DB. It also implements business logic required to create session
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientTokenExpirationFromCollection
(Long collectionId) This method load the session expired time from collection .List<com.skava.core.validation.ValidatorComponent>
This method return the list of validation components to validate the request of create session.process
(ClientSessionRequest input) This method process the create session request and creates the user session whether given request is valid.String[]
validateClientAuthTokenRequest
(String clientId, Long collectionId) This method validates bearer token and returns the bearer token data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
CreateClientSessionServiceImpl
public CreateClientSessionServiceImpl()Default constructor.
-
-
Method Details
-
getValidator
This method return the list of validation components to validate the request of create session.- Specified by:
getValidator
in interfacecom.skava.core.EcommService<ClientSessionRequest,
ClientSessionResponse> - Returns:
- a
List
ofValidatorComponent
objects.
-
process
@SendEvent(eventType="authservice/clientsession/create", identifier="response_session.sessionId") public ClientSessionResponse process(ClientSessionRequest input) This method process the create session request and creates the user session whether given request is valid. User identifier must be positive value. Collection identifier must be positive value. Either user should have the privilege to create session else he must have a valid bearer token from user microservice to create authorization token.- Specified by:
process
in interfacecom.skava.core.EcommService<ClientSessionRequest,
ClientSessionResponse> - Parameters:
input
- aClientSessionRequest
object.- Returns:
- a
ClientSessionResponse
object.
-
validateClientAuthTokenRequest
This method validates bearer token and returns the bearer token data. -
clientTokenExpirationFromCollection
This method load the session expired time from collection .
-