PHP 클래스 Passwd_Driver, horde

저자: Mike Cochrane ([email protected])
저자: Eric Rostetter ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Hash containing configuration parameters.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
changePassword ( string $user, string $oldpass, string $newpass ) Changes the user's password.

보호된 메소드들

메소드 설명
_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.

메소드 상세

__construct() 공개 메소드

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

_changePassword() 추상적인 보호된 메소드

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() 보호된 메소드

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() 보호된 메소드

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

changePassword() 공개 메소드

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.

프로퍼티 상세

$_params 보호되어 있는 프로퍼티

Hash containing configuration parameters.
protected array $_params
리턴 array