PHP 인터페이스 Jose\VerifierInterface

파일 보기 프로젝트 열기: spomky-labs/jose 0 사용 예제들

공개 메소드들

메소드 설명
createVerifier ( array $signature_algorithms ) : Jose\VerifierInterface Signer constructor.
getSupportedSignatureAlgorithms ( ) : string[]
verifyWithKey ( Jose\Object\JWSInterface $input, Jose\Object\JWKInterface $jwk, null | string $detached_payload = null, null | integer &$signature_index = null ) Verify the signature of the input.
verifyWithKeySet ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $jwk_set, null | string $detached_payload = null, null | integer &$signature_index = null ) Verify the signature of the input.

메소드 상세

createVerifier() 공개 정적인 메소드

Signer constructor.
public static createVerifier ( array $signature_algorithms ) : Jose\VerifierInterface
$signature_algorithms array
리턴 Jose\VerifierInterface

getSupportedSignatureAlgorithms() 공개 메소드

public getSupportedSignatureAlgorithms ( ) : string[]
리턴 string[]

verifyWithKey() 공개 메소드

The input must be a valid JWS. This method is usually called after the "load" method.
public verifyWithKey ( Jose\Object\JWSInterface $input, Jose\Object\JWKInterface $jwk, null | string $detached_payload = null, null | integer &$signature_index = null )
$input Jose\Object\JWSInterface A JWS object.
$jwk Jose\Object\JWKInterface The signature will be verified using keys in the key set
$detached_payload null | string If not null, the value must be the detached payload encoded in Base64 URL safe. If the input contains a payload, throws an exception.
$signature_index null | integer If the JWS has been verified, an integer that represents the ID of the signature is set

verifyWithKeySet() 공개 메소드

The input must be a valid JWS. This method is usually called after the "load" method.
public verifyWithKeySet ( Jose\Object\JWSInterface $jws, Jose\Object\JWKSetInterface $jwk_set, null | string $detached_payload = null, null | integer &$signature_index = null )
$jws Jose\Object\JWSInterface A JWS object.
$jwk_set Jose\Object\JWKSetInterface The signature will be verified using keys in the key set
$detached_payload null | string If not null, the value must be the detached payload encoded in Base64 URL safe. If the input contains a payload, throws an exception.
$signature_index null | integer If the JWS has been verified, an integer that represents the ID of the signature is set