\Alipay\EasySDK\Kernel\UtilSigner

Summary

Methods
Properties
Constants
sign()
verify()
verifyParams()
getSignContent()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

sign()

sign( $content,  $privateKeyPem) : string

Parameters

$content

string 待签名的内容

$privateKeyPem

string 私钥

Returns

string —

签名值的Base64串

verify()

verify( $content,  $sign,  $publicKeyPem) : bool

Parameters

$content

string 待验签的内容

$sign

string 签名值的Base64串

$publicKeyPem

string 支付宝公钥

Returns

bool —

true:验证成功;false:验证失败

verifyParams()

verifyParams(mixed  $parameters, mixed  $publicKey) : mixed

Parameters

mixed $parameters
mixed $publicKey

Returns

mixed —

getSignContent()

getSignContent(mixed  $params) : mixed

Parameters

mixed $params

Returns

mixed —