PHP 클래스 PayPal\Auth\Oauth\OAuthSignatureMethod

파일 보기 프로젝트 열기: paypal/sdk-core-php

공개 메소드들

메소드 설명
build_signature ( OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token ) : string Build up the signature NOTE: The output of this function MUST NOT be urlencoded.
check_signature ( OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token, string $signature ) : boolean Verifies that a given signature is correct
get_name ( ) : string Needs to return the name of the Signature Method (ie HMAC-SHA1)

메소드 상세

build_signature() 추상적인 공개 메소드

the encoding is handled in OAuthRequest when the final request is serialized
abstract public build_signature ( OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token ) : string
$request OAuthRequest
$consumer OAuthConsumer
$token OAuthToken
리턴 string

check_signature() 공개 메소드

Verifies that a given signature is correct
public check_signature ( OAuthRequest $request, OAuthConsumer $consumer, OAuthToken $token, string $signature ) : boolean
$request OAuthRequest
$consumer OAuthConsumer
$token OAuthToken
$signature string
리턴 boolean

get_name() 추상적인 공개 메소드

Needs to return the name of the Signature Method (ie HMAC-SHA1)
abstract public get_name ( ) : string
리턴 string