Property | Type | Description | |
---|---|---|---|
$bcrypt | Zend\Crypt\Password\Bcrypt | ||
$bcryptCost | integer |
Method | Description | |
---|---|---|
__construct ( string $connection, array $config = [] ) | ||
checkClientCredentials ( string $clientId, null | string $clientSecret = null ) : boolean | Check client credentials | |
getBcrypt ( ) : Zend\Crypt\Password\Bcrypt | ||
setBcryptCost ( $value ) | ||
setClientDetails ( string $clientId, null | string $clientSecret = null, null | string $redirectUri = null, null | string $grantTypes = null, null | string $scopeOrUserId = null, null | string $userId = null ) : boolean | Set client details | |
setUser ( string $username, string $password, string $firstName = null, string $lastName = null ) : boolean | Set the user |
Method | Description | |
---|---|---|
checkPassword ( string $user, string $password ) : boolean | Check password using bcrypt | |
createBcryptHash ( string $string ) : string | ||
verifyHash ( string $check, string $hash ) : boolean | Check hash using bcrypt |
public __construct ( string $connection, array $config = [] ) | ||
$connection | string | |
$config | array |
protected createBcryptHash ( string $string ) : string | ||
$string | string | |
return | string |
public getBcrypt ( ) : Zend\Crypt\Password\Bcrypt | ||
return | Zend\Crypt\Password\Bcrypt |
public setClientDetails ( string $clientId, null | string $clientSecret = null, null | string $redirectUri = null, null | string $grantTypes = null, null | string $scopeOrUserId = null, null | string $userId = null ) : boolean | ||
$clientId | string | |
$clientSecret | null | string | |
$redirectUri | null | string | |
$grantTypes | null | string | |
$scopeOrUserId | null | string | If 5 arguments, userId; if 6, scope. |
$userId | null | string | |
return | boolean |
protected Bcrypt,Zend\Crypt\Password $bcrypt | ||
return | Zend\Crypt\Password\Bcrypt |