PHP Класс ZF\OAuth2\Adapter\IbmDb2Adapter

Наследование: extends OAuth2\Storage\IbmDb2
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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

Описание методов

__construct() публичный Метод

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

checkClientCredentials() публичный Метод

Check client credentials
public checkClientCredentials ( string $clientId, null | string $clientSecret = null ) : boolean
$clientId string
$clientSecret null | string
Результат boolean

checkPassword() защищенный Метод

Check password using bcrypt
protected checkPassword ( string $user, string $password ) : boolean
$user string
$password string
Результат boolean

createBcryptHash() защищенный Метод

protected createBcryptHash ( string $string ) : string
$string string
Результат string

getBcrypt() публичный Метод

public getBcrypt ( ) : Zend\Crypt\Password\Bcrypt
Результат Zend\Crypt\Password\Bcrypt

setBcryptCost() публичный Метод

public setBcryptCost ( $value )
$value

setClientDetails() публичный Метод

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
Результат boolean

setUser() публичный Метод

Set the user
public setUser ( string $username, string $password, string $firstName = null, string $lastName = null ) : boolean
$username string
$password string
$firstName string
$lastName string
Результат boolean

verifyHash() защищенный Метод

Check hash using bcrypt
protected verifyHash ( string $check, string $hash ) : boolean
$check string
$hash string
Результат boolean

Описание свойств

$bcrypt защищенное свойство

protected Bcrypt,Zend\Crypt\Password $bcrypt
Результат Zend\Crypt\Password\Bcrypt

$bcryptCost защищенное свойство

protected int $bcryptCost
Результат integer