PHP Class Emarref\Jwt\Encryption\Asymmetric

Inheritance: extends AbstractEncryption, implements Emarref\Jwt\Encryption\EncryptionInterface
Mostra file Open project: emarref/jwt

Public Methods

Method Description
__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

Method Details

__construct() public method

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

encrypt() public method

public encrypt ( string $value ) : string
$value string
return string

getPrivateKey() public method

public getPrivateKey ( ) : resource | string
return resource | string

getPublicKey() public method

public getPublicKey ( ) : resource | string
return resource | string

setPrivateKey() public method

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

setPublicKey() public method

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

verify() public method

public verify ( string $value, string $signature ) : boolean
$value string
$signature string
return boolean