PHP 클래스 Horde_Auth_Composite, horde

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

공개 메소드들

메소드 설명
__construct ( array $params = [] ) Constructor.
addUser ( string $userId, array $credentials ) Add a set of authentication credentials.
exists ( string $userId ) : boolean Checks if a userId exists in the system.
hasCapability ( string $capability ) : boolean Query the current Auth object to find out if it supports the given capability.
listUsers ( boolean $sort = false ) : array Lists all users in the system.
removeUser ( string $userId ) Delete a set of authentication credentials.
resetPassword ( string $userId ) : string Reset a user's password. Used for example when the user does not remember the existing password.
transparent ( ) : boolean Automatic authentication.
updateUser ( string $oldID, string $newID, array $credentials ) Update a set of authentication credentials.

보호된 메소드들

메소드 설명
_authenticate ( string $userId, array $credentials ) Find out if a set of login credentials are valid.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $params = [] )
$params array Required parameters:
'admin_driver' - (Horde_Auth_Base) The admin driver.
'auth_driver' - (Horde_Auth_Base) The auth driver.

_authenticate() 보호된 메소드

Find out if a set of login credentials are valid.
protected _authenticate ( string $userId, array $credentials )
$userId string The userId to check.
$credentials array The credentials to use.

addUser() 공개 메소드

Add a set of authentication credentials.
public addUser ( string $userId, array $credentials )
$userId string The userId to add.
$credentials array The credentials to use.

exists() 공개 메소드

Checks if a userId exists in the system.
public exists ( string $userId ) : boolean
$userId string User ID to check
리턴 boolean Whether or not the userId already exists.

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.

listUsers() 공개 메소드

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

removeUser() 공개 메소드

Delete a set of authentication credentials.
public removeUser ( string $userId )
$userId string The userId to delete.

resetPassword() 공개 메소드

Reset a user's password. Used for example when the user does not remember the existing password.
public resetPassword ( string $userId ) : string
$userId string The user id for which to reset the password.
리턴 string The new password on success.

transparent() 공개 메소드

Automatic authentication.
public transparent ( ) : boolean
리턴 boolean Whether or not the client is allowed.

updateUser() 공개 메소드

Update a set of authentication credentials.
public updateUser ( string $oldID, string $newID, array $credentials )
$oldID string The old userId.
$newID string The new userId.
$credentials array The new credentials