Свойство | Type | Description | |
---|---|---|---|
$bcrypt | Zend\Crypt\Password\Bcrypt | ||
$bcryptCost | integer |
Méthode | Description | |
---|---|---|
__construct ( $connection, array $config = [] ) | ||
checkClientCredentials ( string $client_id, string $client_secret = null ) : boolean | Check client credentials | |
getBcrypt ( ) : Zend\Crypt\Password\Bcrypt | ||
setBcryptCost ( $value ) | ||
setClientDetails ( string $client_id, string $client_secret = null, string $redirect_uri = null, string $grant_types = null, string $scope_or_user_id = null, string $user_id = null ) : boolean | Set client details | |
setUser ( string $username, string $password, string $firstName = null, string $lastName = null ) : boolean | Set the user |
Méthode | Description | |
---|---|---|
checkPassword ( string $user, string $password ) : boolean | Check password using bcrypt | |
createBcryptHash ( &$string ) | ||
verifyHash ( $check, $hash ) : boolean | Check hash using bcrypt |
public __construct ( $connection, array $config = [] ) | ||
$connection | ||
$config | array |
public getBcrypt ( ) : Zend\Crypt\Password\Bcrypt | ||
Résultat | Zend\Crypt\Password\Bcrypt |
public setClientDetails ( string $client_id, string $client_secret = null, string $redirect_uri = null, string $grant_types = null, string $scope_or_user_id = null, string $user_id = null ) : boolean | ||
$client_id | string | |
$client_secret | string | |
$redirect_uri | string | |
$grant_types | string | |
$scope_or_user_id | string | If 5 arguments, user_id; if 6, scope. |
$user_id | string | |
Résultat | boolean |
protected verifyHash ( $check, $hash ) : boolean | ||
$check | ||
$hash | ||
Résultat | boolean |
protected Bcrypt,Zend\Crypt\Password $bcrypt | ||
Résultat | Zend\Crypt\Password\Bcrypt |