Firesphere\HaveIBeenPwned\Services\HaveIBeenPwnedService
Class HaveIBeenPwnedService
Synopsis
class HaveIBeenPwnedService
{
- // constants
- const PWND_URL = 'https://haveibeenpwned.com/api/';
- const PWND_API_URL = 'https://api.pwnedpasswords.com/';
- const API_VERSION = '2';
- const USER_AGENT = 'Firesphere-HaveIBeenPwned-checker/1.0';
- // members
- private static bool $allow_pwnd = false;
- private static bool $save_pwnd = true;
- protected $args;
- // methods
- public void __construct()
- public int checkPwnedPassword()
- private int checkList()
- public string checkPwnedEmail()
- private string checkBreaches()
- public array getArgs()
- public void setArgs()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Constants
Name | Value |
---|---|
PWND_URL | 'https://haveibeenpwned.com/api/' |
PWND_API_URL | 'https://api.pwnedpasswords.com/' |
API_VERSION | '2' |
USER_AGENT | 'Firesphere-HaveIBeenPwned-checker/1.0' |
Members
private
- $allow_pwnd — Firesphere\HaveIBeenPwned\Services\bool
- $save_pwnd — Firesphere\HaveIBeenPwned\Services\bool
protected
- $args — array
Methods
private
public
- __construct() — HaveIBeenPwnedService constructor.
- checkPwnedEmail()
- checkPwnedPassword()
- getArgs()
- setArgs()