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 Type
    Method
    Description
    boolean
    isRequired(UUID userId)
    Tells whether an account requires a second factor.
    void
    setRequired(UUID userId, boolean required)
    Sets whether an account requires a second factor.
  • Method Details

    • isRequired

      boolean isRequired(UUID userId)
      Tells whether an account requires a second factor.
      Parameters:
      userId - identifier of the user.
      Returns:
      true when the account requires it; false when it does not or does not exist.
    • setRequired

      void setRequired(UUID userId, boolean required)
      Sets whether an account requires a second factor.
      Parameters:
      userId - identifier of the user.
      required - whether it is required.