Class ClockConfiguration

java.lang.Object
com.irurueta.authserver.authorization.application.time.ClockConfiguration

@Configuration(proxyBeanMethods=false) public class ClockConfiguration extends Object
Provides the Clock the use cases read the current time from, so tests can replace it with a fixed one.
  • Constructor Details

    • ClockConfiguration

      public ClockConfiguration()
  • Method Details

    • clock

      @Bean public Clock clock()
      Creates the system clock in UTC.
      Returns:
      the clock.