프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bcrypt | Zend\Crypt\Password\Bcrypt | ||
$bcryptCost | integer |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 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 | |
리턴 | boolean |
protected verifyHash ( $check, $hash ) : boolean | ||
$check | ||
$hash | ||
리턴 | boolean |