PHP Class Lcobucci\JWT\Signer\Rsa

Since: 2.1.0
Author: Luís Otávio Cobucci Oblonczyk ([email protected])
Inheritance: extends Lcobucci\JWT\Signer\OpenSSL
Show file Open project: lcobucci/jwt

Public Methods

Method Description
createHash ( string $payload, Lcobucci\JWT\Signer\Key $key ) : string
doVerify ( string $expected, string $payload, Lcobucci\JWT\Signer\Key $key ) : boolean
getAlgorithm ( ) : integer Returns the algorithm name

Private Methods

Method Description
validateKey ( resource $key ) Raise an exception when the key type is not the expected type

Method Details

createHash() public method

public createHash ( string $payload, Lcobucci\JWT\Signer\Key $key ) : string
$payload string
$key Lcobucci\JWT\Signer\Key
return string

doVerify() public method

public doVerify ( string $expected, string $payload, Lcobucci\JWT\Signer\Key $key ) : boolean
$expected string
$payload string
$key Lcobucci\JWT\Signer\Key
return boolean

getAlgorithm() abstract public method

Returns the algorithm name
abstract public getAlgorithm ( ) : integer
return integer