PHP Class ZF\OAuth2\Adapter\IbmDb2Adapter

Inheritance: extends OAuth2\Storage\IbmDb2
Afficher le fichier Open project: zfcampus/zf-oauth2

Protected Properties

Свойство Type Description
$bcrypt Zend\Crypt\Password\Bcrypt
$bcryptCost integer

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Method Details

__construct() public méthode

public __construct ( string $connection, array $config = [] )
$connection string
$config array

checkClientCredentials() public méthode

Check client credentials
public checkClientCredentials ( string $clientId, null | string $clientSecret = null ) : boolean
$clientId string
$clientSecret null | string
Résultat boolean

checkPassword() protected méthode

Check password using bcrypt
protected checkPassword ( string $user, string $password ) : boolean
$user string
$password string
Résultat boolean

createBcryptHash() protected méthode

protected createBcryptHash ( string $string ) : string
$string string
Résultat string

getBcrypt() public méthode

public getBcrypt ( ) : Zend\Crypt\Password\Bcrypt
Résultat Zend\Crypt\Password\Bcrypt

setBcryptCost() public méthode

public setBcryptCost ( $value )
$value

setClientDetails() public méthode

Set client details
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
Résultat boolean

setUser() public méthode

Set the user
public setUser ( string $username, string $password, string $firstName = null, string $lastName = null ) : boolean
$username string
$password string
$firstName string
$lastName string
Résultat boolean

verifyHash() protected méthode

Check hash using bcrypt
protected verifyHash ( string $check, string $hash ) : boolean
$check string
$hash string
Résultat boolean

Property Details

$bcrypt protected_oe property

protected Bcrypt,Zend\Crypt\Password $bcrypt
Résultat Zend\Crypt\Password\Bcrypt

$bcryptCost protected_oe property

protected int $bcryptCost
Résultat integer