Class UserCacheOperation
java.lang.Object
es.kukenan.smartfi.microservice.clients.cache.UserCacheOperation
Operation over cache for Rsi.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classLogin cache object to be saved in cache. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUserCacheOperation(com.hazelcast.core.HazelcastInstance hazelcastInstance) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetAndCheckCachedEntity(String biometricToken) Getting Cache object and validate token.voidinsertEntityTokenCache(String accessToken, String userId, String deviceId) Insert Cache object.
-
Field Details
-
cacheName
Map cache. Rsi login cache established. -
cacheTime
Cache time. -
keyBiometricLogin
Key biometric cache. -
hazelcastInstance
private final com.hazelcast.core.HazelcastInstance hazelcastInstanceHazelcastInstance hazelcastInstance.
-
-
Constructor Details
-
UserCacheOperation
public UserCacheOperation(com.hazelcast.core.HazelcastInstance hazelcastInstance) Constructor.- Parameters:
hazelcastInstance- Hazelcast instance
-
-
Method Details
-
getAndCheckCachedEntity
Getting Cache object and validate token.- Parameters:
biometricToken- token.- Returns:
- UserCacheOperation.UserLoginCache
-
insertEntityTokenCache
Insert Cache object.- Parameters:
accessToken- value of the registry.userId- value of identijier user.deviceId- value of identifier device.
-