프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$bcrypt | Zend\Crypt\Password\Bcrypt | ||
$bcryptCost | integer |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | string |
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 | |
리턴 | boolean |