java.lang.Object
es.kukenan.smartfi.microservice.onboarding.security.cache.OtpCacheOperation

@Component @RefreshScope public class OtpCacheOperation extends Object
Otp cache operations.
  • Field Details

    • otpSession

      @Value("${cache.otp.uuid-session-map}") private String otpSession
      map uuid-session cache established.
    • timeToLive

      @Value("${cache.otp.time-to-live}") private Long timeToLive
      ttl time-to-live established.
    • hazelcastInstance

      @Autowired private com.hazelcast.core.HazelcastInstance hazelcastInstance
      HazelcastInstance hazelcastInstance.
  • Constructor Details

    • OtpCacheOperation

      public OtpCacheOperation()
  • Method Details

    • cacheOperations

      public void cacheOperations(List<SessionCacheOperationEnum> operations, String processId, Object obj)
      Cache operations.
      Parameters:
      operations - to be executed
      processId - key of the registry
      obj - to be saved
    • getAllInformationByProcessId

      public OtpCache getAllInformationByProcessId(String processId)
      getting all Otp Cache object.
      Parameters:
      processId - key of the registry
      Returns:
      otpCache object
    • getAll

      public List<OtpCache> getAll()
      getting all Otp Cache objects.
      Returns:
      arrayListOtp list