PHP Class Passwd_Driver, horde

Author: Mike Cochrane ([email protected])
Author: Eric Rostetter ([email protected])
ファイルを表示 Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_params array Hash containing configuration parameters.

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.
changePassword ( string $user, string $oldpass, string $newpass ) Changes the user's password.

Protected Methods

Method Description
_changePassword ( string $user, string $oldpass, string $newpass ) Changes the user's password.
_comparePasswords ( string $encrypted, string $plaintext ) Compares a plaintext password with an encrypted password.
_encryptPassword ( string $plaintext ) : string Encrypts a password.

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array A hash containing connection parameters.

_changePassword() abstract protected method

Changes the user's password.
abstract protected _changePassword ( string $user, string $oldpass, string $newpass )
$user string The user for which to change the password (converted to backend username).
$oldpass string The old (current) user password.
$newpass string The new user password to set.

_comparePasswords() protected method

Compares a plaintext password with an encrypted password.
protected _comparePasswords ( string $encrypted, string $plaintext )
$encrypted string An encrypted password.
$plaintext string An unencrypted password.

_encryptPassword() protected method

Encrypts a password.
protected _encryptPassword ( string $plaintext ) : string
$plaintext string A plaintext password.
return string The encrypted password.

changePassword() public method

Changes the user's password.
public changePassword ( string $user, string $oldpass, string $newpass )
$user string The user for which to change the password.
$oldpass string The old (current) user password.
$newpass string The new user password to set.

Property Details

$_params protected_oe property

Hash containing configuration parameters.
protected array $_params
return array