Package xyz.jorgecastro.passwordcritic
Interface PwnedPasswordsService
public interface PwnedPasswordsService
Interface to be adapted by
Retrofit to interact with the Pwned Passwords API.-
Method Summary
Modifier and TypeMethodDescriptionretrofit2.Call<String>searchPassword(String hashPrefix) Generate aCallobject that will query the Pwned Passwords API to search for a password by range (using its partial hash) when executed.
-
Method Details
-
searchPassword
@GET("range/{hashPrefix}") retrofit2.Call<String> searchPassword(@Path("hashPrefix") String hashPrefix) Generate aCallobject that will query the Pwned Passwords API to search for a password by range (using its partial hash) when executed.- Parameters:
hashPrefix- the first 5 characters of a SHA-1 password hash.- Returns:
- a
Callobject to search for password by range.
-