Interface CompromisedPasswordCheck
- All Known Implementing Classes:
SpringCompromisedPasswordCheck
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 TypeMethodDescriptionbooleanisCompromised(String password) Checks a password against a list of leaked passwords.
-
Method Details
-
isCompromised
Checks a password against a list of leaked passwords.- Parameters:
password- the clear-text password.- Returns:
truewhen the password is known to be compromised.
-