PHP Класс Horde_Auth_X509, horde

С версии: 2.0.7
Автор: Michael J Rubinsky ([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.

Открытые методы

Метод Описание
__construct ( array $params = [] ) Constructor.
transparent ( ) : boolean Automatic authentication: checks if the username is set in the configured header.

Защищенные методы

Метод Описание
_authenticate ( string $userId, array $credentials ) Not implemented.
_validate ( $certificate ) : boolean Perform additional validation of certificate fields.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( array $params = [] )
$params array Parameters: - password: (string) If available, the password to use for the session. DEFAULT: no password used. - username_field: (string) Name of the $_SERVER field that the username can be found in. DEFAULT: 'SSL_CLIENT_S_DN_EMAILADDRESS'. - certificate_field: (string) Name of the $_SERVER field that contains the full certificate. DEFAULT: 'SSL_CLIENT_CERT' - ignore_purpose: (boolean) If true, will ignore any usage restrictions on the presented client certificate. I.e., if openssl_x509_checkpurpose returns false, authentication may still proceed. DEFAULT: false - ONLY ENABLE THIS IF YOU KNOW WHY YOU ARE DOING SO. - filter: (array) An array where the keys are field names and the values are the values those certificate fields MUST match to be considered valid. Keys in the format of fieldone:fieldtwo will be taken as parent:child. DEFAULT: no additionachecks applied.

_authenticate() защищенный Метод

Not implemented.
protected _authenticate ( string $userId, array $credentials )
$userId string The userID to check.
$credentials array An array of login credentials.

_validate() защищенный Метод

Perform additional validation of certificate fields.
protected _validate ( $certificate ) : boolean
Результат boolean

transparent() публичный Метод

Automatic authentication: checks if the username is set in the configured header.
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