Class OttConfiguration
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds the generator of codes.Builds the hasher of codes.ottPolicy(OttProperties properties) Builds the policy of the one-time codes.
-
Constructor Details
-
OttConfiguration
public OttConfiguration()
-
-
Method Details
-
ottPolicy
Builds the policy of the one-time codes.- Parameters:
properties- the settings.- Returns:
- the policy.
-
oneTimeCodeGenerator
Builds the generator of codes.- Returns:
- the generator, backed by a
SecureRandom.
-
oneTimeCodeHasher
Builds the hasher of codes.- Returns:
- the hasher.
-