Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe Signature

Fonctions membres publiques

 __construct ($hash, $encoded='')
 
 verify (Signer $signer, $payload, $key)
 
 __toString ()
 
 hash ()
 
 toString ()
 

Fonctions membres publiques statiques

static fromEmptyData ()
 

Attributs protégés

 $hash
 

Attributs privés

 $encoded
 

Description détaillée

This class represents a token signature

Auteur
Luís Otávio Cobucci Oblonczyk lcobu.nosp@m.cci@.nosp@m.gmail.nosp@m..com
Depuis
0.1.0

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $hash,
  $encoded = '' 
)

Initializes the object

Paramètres
string$hash
string$encoded

Références Signature\$encoded, Signature\$hash, et Signature\hash().

Documentation des fonctions membres

◆ __toString()

__toString ( )

Returns the current hash as a string representation of the signature

Obsolète:
This method has been removed from the public API in v4
Voir également
Signature::hash()
Renvoie
string

Références Signature\$hash.

◆ fromEmptyData()

static fromEmptyData ( )
static

◆ hash()

hash ( )
Renvoie
string

Références Signature\$hash.

Référencé par Signature\__construct(), et Signature\verify().

◆ toString()

toString ( )
Renvoie
string

Références Signature\$encoded.

◆ verify()

verify ( Signer  $signer,
  $payload,
  $key 
)

Verifies if the current hash matches with with the result of the creation of a new signature with given data

Paramètres
Signer$signer
string$payload
Key | string$key
Renvoie
boolean

Références $key, Signature\hash(), et Signer\verify().

Documentation des champs

◆ $encoded

$encoded
private

◆ $hash


La documentation de cette classe a été générée à partir du fichier suivant :