Class CompromisedPasswordConfiguration
java.lang.Object
com.irurueta.authserver.authorization.api.web.password.CompromisedPasswordConfiguration
Registers the
CompromisedPasswordCheck port. The check is enabled unless
authserver.password.compromised-check.enabled is false, in which case no password is reported as
compromised (for example in offline environments).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringName of the property that switches the check on and off. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates the check backed by the Have I Been Pwned range API.Creates the no-op check used when the property disables the check.
-
Field Details
-
ENABLED_PROPERTY
Name of the property that switches the check on and off.- See Also:
-
-
Constructor Details
-
CompromisedPasswordConfiguration
public CompromisedPasswordConfiguration()
-
-
Method Details
-
haveIBeenPwnedCompromisedPasswordCheck
@Bean @ConditionalOnProperty(name="authserver.password.compromised-check.enabled", havingValue="true", matchIfMissing=true) public CompromisedPasswordCheck haveIBeenPwnedCompromisedPasswordCheck()Creates the check backed by the Have I Been Pwned range API.- Returns:
- the enabled check.
-
noOpCompromisedPasswordCheck
@Bean @ConditionalOnProperty(name="authserver.password.compromised-check.enabled", havingValue="false") public CompromisedPasswordCheck noOpCompromisedPasswordCheck()Creates the no-op check used when the property disables the check.- Returns:
- a check that never reports a password as compromised.
-