Class SessionCacheUtilities
java.lang.Object
es.kukenan.smartfi.microservice.security.gateway.utils.SessionCacheUtilities
Session cache utilities for update.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JwtTokenUtilitiesService utilities for manage jwt token.private SessionCacheOperationCacheOperation cache operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiones.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCacheassociateSessionClient(es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionFather, es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionChild) Update the session for webclient based on session asociated.private es.kukenan.smartfi.common.service.jwt.JwtBearerTokencopyJwtFromFatherJwt(es.kukenan.smartfi.common.service.jwt.JwtBearerToken fatherJwt) Generate new Jwt from other Jwt.es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCacheOperation cache for request.voidmanageSessionCacheForUuid(String uuid, SessionCacheOperationEnum sessionCacheOperationEnum, es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionCache) Manage specific operation session cache process.
-
Field Details
-
sessionCacheOperation
CacheOperation cache operations. -
jwtTokenUtilities
Service utilities for manage jwt token.
-
-
Constructor Details
-
SessionCacheUtilities
public SessionCacheUtilities()
-
-
Method Details
-
manageSessionCacheForUuid
public void manageSessionCacheForUuid(String uuid, SessionCacheOperationEnum sessionCacheOperationEnum, es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionCache) Manage specific operation session cache process.- Parameters:
uuid- unique session process identifier.sessionCacheOperationEnum- Type of operation in session cache.sessionCache- Session cache object.
-
getActivatedCacheSession
public es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache getActivatedCacheSession(String uuid) Operation cache for request.- Parameters:
uuid- unique identifier for cache session.- Returns:
- session cache operation.
-
associateSessionClient
public es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache associateSessionClient(es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionFather, es.kukenan.smartfi.microservice.security.gateway.cache.model.SessionCache sessionChild) Update the session for webclient based on session asociated.- Parameters:
sessionFather- actual session for impersonationsessionChild- other session.- Returns:
- new session cache
-
copyJwtFromFatherJwt
private es.kukenan.smartfi.common.service.jwt.JwtBearerToken copyJwtFromFatherJwt(es.kukenan.smartfi.common.service.jwt.JwtBearerToken fatherJwt) Generate new Jwt from other Jwt.- Parameters:
fatherJwt- fatherJwt.- Returns:
- a new Jwt.
-