Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (AlgorithmManager $signatureAlgorithmManager) | |
getSignatureAlgorithmManager () | |
verifyWithKey (JWS $jws, JWK $jwk, int $signature, ?string $detachedPayload=null) | |
verifyWithKeySet (JWS $jws, JWKSet $jwkset, int $signatureIndex, ?string $detachedPayload=null, JWK &$jwk=null) | |
Fonctions membres privées | |
verifySignature (JWS $jws, JWKSet $jwkset, Signature $signature, ?string $detachedPayload=null, JWK &$successJwk=null) | |
getInputToVerify (JWS $jws, Signature $signature, ?string $detachedPayload) | |
checkPayload (JWS $jws, ?string $detachedPayload=null) | |
getAlgorithm (Signature $signature) | |
isPayloadEmpty (?string $payload) | |
Attributs privés | |
$signatureAlgorithmManager | |
__construct | ( | AlgorithmManager | $signatureAlgorithmManager | ) |
JWSVerifier constructor.
Références JWSVerifier\$signatureAlgorithmManager.
InvalidArgumentException | if the payload is set when a detached payload is provided or no payload is defined |
Références JWS\getPayload(), JWSVerifier\isPayloadEmpty(), et null.
Référencé par JWSVerifier\verifyWithKeySet().
|
private |
InvalidArgumentException | if the header parameter "alg" is missing or invalid |
Références Signature\getHeader(), et Signature\getProtectedHeader().
Référencé par JWSVerifier\verifySignature().
getSignatureAlgorithmManager | ( | ) |
Returns the algorithm manager associated to the JWSVerifier.
Références JWSVerifier\$signatureAlgorithmManager.
|
private |
Références null.
Référencé par JWSVerifier\checkPayload(), et JWSVerifier\getInputToVerify().
This method will try to verify the JWS object using the given key and for the given signature. It returns true if the signature is verified, otherwise false.
Références JWSVerifier\verifyWithKeySet().
verifyWithKeySet | ( | JWS | $jws, |
JWKSet | $jwkset, | ||
int | $signatureIndex, | ||
?string | $detachedPayload = null , |
||
JWK & | $jwk = null |
||
) |
This method will try to verify the JWS object using the given key set and for the given signature. It returns true if the signature is verified, otherwise false.
JWS | $jws | A JWS object |
JWKSet | $jwkset | The signature will be verified using keys in the key set |
JWK | $jwk | The key used to verify the signature in case of success |
null | string | $detachedPayload | If not null, the value must be the detached payload encoded in Base64 URL safe. If the input contains a payload, throws an exception. |
InvalidArgumentException | if there is no key in the keyset |
InvalidArgumentException | if the token does not contain any signature |
Références JWSVerifier\checkPayload(), JWKSet\count(), JWS\countSignatures(), JWS\getSignature(), et JWSVerifier\verifySignature().
Référencé par JWSVerifier\verifyWithKey().
|
private |
Référencé par JWSVerifier\__construct(), et JWSVerifier\getSignatureAlgorithmManager().