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 JWSLoader

Fonctions membres publiques

 __construct (JWSSerializerManager $serializerManager, JWSVerifier $jwsVerifier, ?HeaderCheckerManager $headerCheckerManager)
 
 getJwsVerifier ()
 
 getHeaderCheckerManager ()
 
 getSerializerManager ()
 
 loadAndVerifyWithKey (string $token, JWK $key, ?int &$signature, ?string $payload=null)
 
 loadAndVerifyWithKeySet (string $token, JWKSet $keyset, ?int &$signature, ?string $payload=null)
 

Fonctions membres privées

 processSignature (JWS $jws, JWKSet $keyset, int $signature, ?string $payload)
 

Attributs privés

 $jwsVerifier
 
 $headerCheckerManager
 
 $serializerManager
 

Documentation des constructeurs et destructeur

◆ __construct()

__construct ( JWSSerializerManager  $serializerManager,
JWSVerifier  $jwsVerifier,
?HeaderCheckerManager  $headerCheckerManager 
)

Documentation des fonctions membres

◆ getHeaderCheckerManager()

getHeaderCheckerManager ( )

Returns the Header Checker Manager associated to the JWSLoader.

Références JWSLoader\$headerCheckerManager.

◆ getJwsVerifier()

getJwsVerifier ( )

Returns the JWSVerifier associated to the JWSLoader.

Références JWSLoader\$jwsVerifier.

◆ getSerializerManager()

getSerializerManager ( )

Returns the JWSSerializer associated to the JWSLoader.

Références JWSLoader\$serializerManager.

◆ loadAndVerifyWithKey()

loadAndVerifyWithKey ( string  $token,
JWK  $key,
?int &  $signature,
?string  $payload = null 
)

This method will try to load and verify the token using the given key. It returns a JWS and will populate the $signature variable in case of success, otherwise an exception is thrown.

Exceptions
Exceptionif the token cannot be loaded or verified

Références $key, et JWSLoader\loadAndVerifyWithKeySet().

◆ loadAndVerifyWithKeySet()

loadAndVerifyWithKeySet ( string  $token,
JWKSet  $keyset,
?int &  $signature,
?string  $payload = null 
)

This method will try to load and verify the token using the given key set. It returns a JWS and will populate the $signature variable in case of success, otherwise an exception is thrown.

Exceptions
Exceptionif the token cannot be loaded or verified

Références $i, JWS\countSignatures(), et JWSLoader\processSignature().

Référencé par JWSLoader\loadAndVerifyWithKey().

◆ processSignature()

processSignature ( JWS  $jws,
JWKSet  $keyset,
int  $signature,
?string  $payload 
)
private

Références null.

Référencé par JWSLoader\loadAndVerifyWithKeySet().

Documentation des champs

◆ $headerCheckerManager

$headerCheckerManager
private

◆ $jwsVerifier

$jwsVerifier
private

◆ $serializerManager

$serializerManager
private

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