PHP Class Passwd_Driver, horde

Author: Mike Cochrane ([email protected])
Author: Eric Rostetter ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_params array Hash containing configuration parameters.

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

_changePassword() abstract protected méthode

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 méthode

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 méthode

Encrypts a password.
protected _encryptPassword ( string $plaintext ) : string
$plaintext string A plaintext password.
Résultat string The encrypted password.

changePassword() public méthode

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
Résultat array