Interface PwnedPasswordsService


public interface PwnedPasswordsService
Interface to be adapted by Retrofit to interact with the Pwned Passwords API.
  • Method Summary

    Modifier and Type
    Method
    Description
    retrofit2.Call<String>
    searchPassword(String hashPrefix)
    Generate a Call object 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 a Call object 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 Call object to search for password by range.