Interface UserMfaSettingsRepository
- All Known Implementing Classes:
JdbcUserMfaSettingsRepository
public interface UserMfaSettingsRepository
Port that stores the multi-factor settings of a user account.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanisRequired(UUID userId) Tells whether an account requires a second factor.voidsetRequired(UUID userId, boolean required) Sets whether an account requires a second factor.
-
Method Details
-
isRequired
Tells whether an account requires a second factor.- Parameters:
userId- identifier of the user.- Returns:
truewhen the account requires it;falsewhen it does not or does not exist.
-
setRequired
Sets whether an account requires a second factor.- Parameters:
userId- identifier of the user.required- whether it is required.
-