PHP Класс Jose\Verifier

Наследование: implements jose\VerifierInterface, use trait Jose\Behaviour\HasKeyChecker, use trait Jose\Behaviour\HasJWAManager, use trait Jose\Behaviour\CommonSigningMethods
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $signature_algorithms ) Verifier constructor.
createVerifier ( array $signature_algorithms )
verifyWithKey ( Jose\Object\JWSInterface $jws, Jose\Object\JWKInterface $jwk, $detached_payload = null, &$recipient_index = null )
verifyWithKeySet ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $jwk_set, $detached_payload = null, &$recipient_index = null )

Приватные методы

Метод Описание
checkJWKSet ( Jose\Object\JWKSetInterface $jwk_set )
checkPayload ( Jose\Object\JWSInterface $jws, null | string $detached_payload = null )
checkSignatures ( Jose\Object\JWSInterface $jws )
getAlgorithm ( Jose\Object\SignatureInterface $signature ) : Jose\Algorithm\SignatureAlgorithmInterface
getInputToVerify ( Jose\Object\JWSInterface $jws, Jose\Object\SignatureInterface $signature, string | null $detached_payload ) : string
verifySignature ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $jwk_set, Jose\Object\SignatureInterface $signature, string | null $detached_payload = null ) : boolean
verifySignatures ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $jwk_set, string | null $detached_payload = null, integer | null &$recipient_index = null )

Описание методов

__construct() публичный метод

Verifier constructor.
public __construct ( array $signature_algorithms )
$signature_algorithms array

createVerifier() публичный статический метод

public static createVerifier ( array $signature_algorithms )
$signature_algorithms array

verifyWithKey() публичный метод

public verifyWithKey ( Jose\Object\JWSInterface $jws, Jose\Object\JWKInterface $jwk, $detached_payload = null, &$recipient_index = null )
$jws Jose\Object\JWSInterface
$jwk Jose\Object\JWKInterface

verifyWithKeySet() публичный метод

public verifyWithKeySet ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $jwk_set, $detached_payload = null, &$recipient_index = null )
$jws Jose\Object\JWSInterface
$jwk_set Jose\Object\JWKSetInterface