PHP 클래스 Horde_Auth_Http, horde

저자: Chuck Hagenbuch ([email protected])
상속: extends Horde_Auth_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_capabilities array An array of capabilities, so that the driver can report which operations it supports and which it doesn't.
$_users array Array of usernames and hashed passwords.

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
listUsers ( boolean $sort = false ) : array Lists all users in the system.
transparent ( ) : boolean Automatic authentication: Find out if the client has HTTP authentication info present.

보호된 메소드들

메소드 설명
_authenticate ( string $userId, array $credentials ) Find out if a set of login credentials are valid. Only supports htpasswd files with DES passwords right now.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Optional parameters:
'encryption' - (string) Kind of passwords in the .htpasswd file.
               Either 'crypt-des' (standard crypted htpasswd entries)
               [DEFAULT] or 'aprmd5'. This information is used if
               you want to directly authenticate users with this
               driver, instead of relying on transparent auth.
'htpasswd_file' - (string) TODO

_authenticate() 보호된 메소드

Find out if a set of login credentials are valid. Only supports htpasswd files with DES passwords right now.
protected _authenticate ( string $userId, array $credentials )
$userId string The userId to check.
$credentials array An array of login credentials. For IMAP, this must contain a password entry.

listUsers() 공개 메소드

Lists all users in the system.
public listUsers ( boolean $sort = false ) : array
$sort boolean Sort the users?
리턴 array The array of userIds.

transparent() 공개 메소드

Automatic authentication: Find out if the client has HTTP authentication info present.
public transparent ( ) : boolean
리턴 boolean Whether or not the client is allowed.

프로퍼티 상세

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

An array of capabilities, so that the driver can report which operations it supports and which it doesn't.
protected array $_capabilities
리턴 array

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

Array of usernames and hashed passwords.
protected array $_users
리턴 array