Interface CompromisedPasswordCheck


public interface CompromisedPasswordCheck
Port that tells whether a password is known to have leaked in a data breach. An implementation never sends the clear-text password anywhere and must decide what to answer when its source is unreachable.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks a password against a list of leaked passwords.
  • Method Details

    • isCompromised

      boolean isCompromised(String password)
      Checks a password against a list of leaked passwords.
      Parameters:
      password - the clear-text password.
      Returns:
      true when the password is known to be compromised.