PHP Класс Emarref\Jwt\Encryption\Asymmetric

Наследование: extends AbstractEncryption, implements Emarref\Jwt\Encryption\EncryptionInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Emarref\Jwt\Algorithm\AsymmetricInterface $algorithm )
encrypt ( string $value ) : string
getPrivateKey ( ) : resource | string
getPublicKey ( ) : resource | string
setPrivateKey ( resource | string $privateKey )
setPublicKey ( resource | string $publicKey )
verify ( string $value, string $signature ) : boolean

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

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

public __construct ( Emarref\Jwt\Algorithm\AsymmetricInterface $algorithm )
$algorithm Emarref\Jwt\Algorithm\AsymmetricInterface

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

public encrypt ( string $value ) : string
$value string
Результат string

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

public getPrivateKey ( ) : resource | string
Результат resource | string

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

public getPublicKey ( ) : resource | string
Результат resource | string

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

public setPrivateKey ( resource | string $privateKey )
$privateKey resource | string

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

public setPublicKey ( resource | string $publicKey )
$publicKey resource | string

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

public verify ( string $value, string $signature ) : boolean
$value string
$signature string
Результат boolean