Uses the https://api.pwnedpasswords.com/range/
API call to check whether a password has been exposed in a data breach
according to https://haveibeenpwned.com.
PwndAPI pwndAPI = new PwndAPI();
boolean usedInBreach = pwndAPI.haveIBeenPwned("password");
Gradle
Maven