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
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

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