PHP Класс Horde_Core_ActiveSync_Auth, horde

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, http://www.horde.org/licenses/lgpl21
Автор: Michael J Rubinsky ([email protected])
Наследование: extends Horde_Auth_Base
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( array $params = [] ) Constructor.
_authenticate ( $userId, $credentials )
authenticate ( string $userId, array $credentials, boolean $login = true ) : boolean Find out if a set of login credentials are valid, and if requested, mark the user as logged in in the current session.
hasCapability ( string $capability ) : boolean Query the current Auth object to find out if it supports the given capability.
transparent ( ) : boolean Automatic authentication.

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

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

Constructor.
public __construct ( array $params = [] )
$params array Required parameters: - base_driver: (Horde_Auth_Base) The globally configured horde auth driver. REQUIRED - transparent_driver: (Horde_Auth_Base) The driver to perform transparent auth, such as X509. OPTIONAL.

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

public _authenticate ( $userId, $credentials )

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

Find out if a set of login credentials are valid, and if requested, mark the user as logged in in the current session.
public authenticate ( string $userId, array $credentials, boolean $login = true ) : boolean
$userId string The userId to check.
$credentials array The credentials to check.
$login boolean Whether to log the user in. If false, we'll only test the credentials and won't modify the current session. Defaults to true.
Результат boolean Whether or not the credentials are valid.

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

Query the current Auth object to find out if it supports the given capability.
public hasCapability ( string $capability ) : boolean
$capability string The capability to test for.
Результат boolean Whether or not the capability is supported.

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

Automatic authentication.
public transparent ( ) : boolean
Результат boolean Whether or not the client is allowed.