platform/api/laravel/Validation/NotPwnedVerifier.yaml
2024-09-02 10:44:11 -07:00

79 lines
1.9 KiB
YAML

name: NotPwnedVerifier
class_comment: null
dependencies:
- name: Exception
type: class
source: Exception
- name: UncompromisedVerifier
type: class
source: Illuminate\Contracts\Validation\UncompromisedVerifier
- name: Str
type: class
source: Illuminate\Support\Str
properties:
- name: factory
visibility: protected
comment: '# * The HTTP factory instance.
# *
# * @var \Illuminate\Http\Client\Factory'
- name: timeout
visibility: protected
comment: '# * The number of seconds the request can run before timing out.
# *
# * @var int'
methods:
- name: __construct
visibility: public
parameters:
- name: factory
- name: timeout
default: 'null'
comment: "# * The HTTP factory instance.\n# *\n# * @var \\Illuminate\\Http\\Client\\\
Factory\n# */\n# protected $factory;\n# \n# /**\n# * The number of seconds the\
\ request can run before timing out.\n# *\n# * @var int\n# */\n# protected $timeout;\n\
# \n# /**\n# * Create a new uncompromised verifier.\n# *\n# * @param \\Illuminate\\\
Http\\Client\\Factory $factory\n# * @param int|null $timeout\n# * @return void"
- name: verify
visibility: public
parameters:
- name: data
comment: '# * Verify that the given data has not been compromised in public breaches.
# *
# * @param array $data
# * @return bool'
- name: getHash
visibility: protected
parameters:
- name: value
comment: '# * Get the hash and its first 5 chars.
# *
# * @param string $value
# * @return array'
- name: search
visibility: protected
parameters:
- name: hashPrefix
comment: '# * Search by the given hash prefix and returns all occurrences of leaked
passwords.
# *
# * @param string $hashPrefix
# * @return \Illuminate\Support\Collection'
traits:
- Exception
- Illuminate\Contracts\Validation\UncompromisedVerifier
- Illuminate\Support\Str
interfaces:
- UncompromisedVerifier