ChainedHandler
实现 HandlerInterface, CheckIfRehashNeededHandlerInterface支持针对一系列处理程序进行测试的密码处理程序
| 自 |
4.0.0 |
|---|---|
| 包 |
Joomla CMS |
方法
addHandler
向链中添加处理程序
addHandler(\Joomla\Authentication\Password\HandlerInterface handler) :
| 自 |
4.0.0 |
|---|
参数
- handler
HandlerInterface要添加的密码处理程序
响应
void
checkIfRehashNeeded
检查密码是否需要重新哈希
checkIfRehashNeeded( hash) :
| 自 |
4.0.0 |
|---|
参数
- hash
string要检查的密码哈希
响应
bool
hashPassword
为纯文本密码生成哈希
hashPassword( plaintext, mixed||string|int options = []) :
| 自 |
4.0.0 |
|---|---|
| 抛出 |
|
参数
- plaintext
string要验证的纯文本密码- options
array<string|int, mixed>哈希操作的选项
响应
void
isSupported
检查密码处理程序是否在此环境中受支持
isSupported() :
static
| 自 |
4.0.0 |
|---|
响应
bool
validatePassword
验证密码
validatePassword( plaintext, hashed) :
| 自 |
4.0.0 |
|---|
参数
- plaintext
string要验证的纯文本密码- hashed
string要验证的密码哈希
响应
bool
属性
handlers
此链使用的密码处理程序。
| 自 |
4.0.0 |
|---|
类型
array<string|int, HandlerInterface>