PHP Класс Horde_Auth_Http, horde

Автор: Chuck Hagenbuch ([email protected])
Наследование: extends Horde_Auth_Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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