passCheck
extends remoteModel
in
pwnedpasswords.com password check model
Table of Contents
$passHash | SHA1 password hash | string |
---|---|---|
$passLimit | Password delimiter | int |
$remotePort | Server port | string |
$remoteServerBase | Server string | string |
$remoteServer | URL zum Server | string |
$remotePort | Server port | string |
$checkParams | Datenparameter | array |
$canConnect | Verbindungen zu anderem Server möglich | bool |
$remoteData | vom Server zurückgegebene Daten | string |
$data | Data array | array |
$cache | Cache object | cache |
$events | Event list | events |
$config | Config object | config |
$language | Sprachobjekt | language |
$session | Session objekt | session |
$notifications | Notifications | notifications |
$permissions | Permissions | permissions |
$cacheName | Cache name | string |
$cacheModule | Cache Modul | string |
__construct() | Konstruktor | void |
saveRemoteData() | Writes remote repository data to local storage | bool |
isPowned() | Checks password string against pwnedpasswords.com, transfers an 5-char SHA1 hash | bool |
__construct() | Konstruktor | void |
fetchRemoteData() | Ftech data from remote source | bool |
getRemoteData() | Daten zurückgeben, die vom Server abgerufen wurden | array |
remoteAvailable() | Prüft, ob Update-Server verfügbar ist | bool |
saveRemoteData() | Writes remote repository data to local storage | bool |
getCacheName() | Cache-Name zurückgeben | string |
Properties
$passHash
SHA1 password hash
protected
string
$passHash
= ''
$passLimit
Password delimiter
protected
int
$passLimit
= 5
$remotePort
Server port
protected
string
$remotePort
= 443
$remoteServerBase
Server string
protected
string
$remoteServerBase
= 'https://api.pwnedpasswords.com/range/'
$remoteServer
URL zum Server
protected
string
$remoteServer
= ''
$remotePort
Server port
protected
string
$remotePort
= 80
$checkParams
Datenparameter
protected
array
$checkParams
= []
$canConnect
Verbindungen zu anderem Server möglich
protected
bool
$canConnect
= false
$remoteData
vom Server zurückgegebene Daten
protected
string
$remoteData
= ''
$data
Data array
protected
array
$data
$cache
Cache object
protected
cache
$cache
$events
Event list
protected
events
$events
$config
Config object
protected
config
$config
$language
Sprachobjekt
protected
language
$language
$session
Session objekt
protected
session
$session
$notifications
Notifications
protected
notifications
$notifications
$permissions
Permissions
protected
permissions
$permissions
$cacheName
Cache name
protected
string
$cacheName
= false
$cacheModule
Cache Modul
protected
string
$cacheModule
= ''
Methods
__construct()
Konstruktor
public
__construct(
$pass :
string
)
: void
Parameters
- $pass : string
saveRemoteData()
Writes remote repository data to local storage
protected
saveRemoteData(
)
: bool
Return values
boolisPowned()
Checks password string against pwnedpasswords.com, transfers an 5-char SHA1 hash
public
isPowned(
)
: bool
Return values
bool —true if password is not in returned list or count is then 100
__construct()
Konstruktor
public
__construct(
)
: void
fetchRemoteData()
Ftech data from remote source
public
fetchRemoteData(
)
: bool
Return values
boolgetRemoteData()
Daten zurückgeben, die vom Server abgerufen wurden
public
getRemoteData(
[ $key :
string
= false ]
)
: array
Parameters
- $key : string = false
Return values
arrayremoteAvailable()
Prüft, ob Update-Server verfügbar ist
protected
remoteAvailable(
)
: bool
Return values
boolsaveRemoteData()
Writes remote repository data to local storage
protected
abstract saveRemoteData(
)
: bool
Return values
boolgetCacheName()
Cache-Name zurückgeben
public
getCacheName(
[ $addName :
string
= '' ]
)
: string
Parameters
- $addName : string = ''