Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Jose
Algorithm
SignatureAlgorithmInterface
PHP Interface Jose\Algorithm\SignatureAlgorithmInterface
Inheritance:
extends
Jose\Algorithm\JWAInterface
Afficher le fichier
Open project: spomky-labs/jose
Méthodes publiques
Méthode
Description
sign
(
Jose\Object\JWKInterface
$key
,
string
$input
) :
string
Sign the input.
verify
(
Jose\Object\JWKInterface
$key
,
string
$input
,
string
$signature
) :
boolean
Verify the signature of data.
Method Details
sign()
public
méthode
Sign the input.
public
sign
(
Jose\Object\JWKInterface
$key
,
string
$input
) :
string
$key
Jose\Object\JWKInterface
The private key used to sign the data
$input
string
The input
Résultat
string
verify()
public
méthode
Verify the signature of data.
public
verify
(
Jose\Object\JWKInterface
$key
,
string
$input
,
string
$signature
) :
boolean
$key
Jose\Object\JWKInterface
The private key used to sign the data
$input
string
The input
$signature
string
The signature to verify
Résultat
boolean