PHP Class Jose\Verifier

Inheritance: implements jose\VerifierInterface, use trait Jose\Behaviour\HasKeyChecker, use trait Jose\Behaviour\HasJWAManager, use trait Jose\Behaviour\CommonSigningMethods
Datei anzeigen Open project: spomky-labs/jose Class Usage Examples

Public Methods

Method Description
__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 )

Private Methods

Method Description
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 )

Method Details

__construct() public method

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

createVerifier() public static method

public static createVerifier ( array $signature_algorithms )
$signature_algorithms array

verifyWithKey() public method

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 method

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