java.lang.Object
com.irurueta.authserver.authorization.application.ott.OttConfiguration

@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(OttProperties.class) public class OttConfiguration extends Object
Declares the collaborators of the one-time-code use cases as beans, so they can be replaced and mocked.
  • Constructor Details

    • OttConfiguration

      public OttConfiguration()
  • Method Details

    • ottPolicy

      @Bean public OttPolicy ottPolicy(OttProperties properties)
      Builds the policy of the one-time codes.
      Parameters:
      properties - the settings.
      Returns:
      the policy.
    • oneTimeCodeGenerator

      @Bean public OneTimeCodeGenerator oneTimeCodeGenerator()
      Builds the generator of codes.
      Returns:
      the generator, backed by a SecureRandom.
    • oneTimeCodeHasher

      @Bean public OneTimeCodeHasher oneTimeCodeHasher()
      Builds the hasher of codes.
      Returns:
      the hasher.