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
Afficher le fichier Open project: lcobucci/jwt

Méthodes publiques

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

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

Method Details

createHash() public méthode

public createHash ( string $payload, Lcobucci\JWT\Signer\Key $key ) : string
$payload string
$key Lcobucci\JWT\Signer\Key
Résultat string

doVerify() public méthode

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

getAlgorithm() abstract public méthode

Returns the algorithm name
abstract public getAlgorithm ( ) : integer
Résultat integer