\Alipay\SignerAlipayRSA2Signer

Summary

Methods
Properties
Constants
generate()
generateByParams()
verify()
verifyByParams()
getSignType()
getSignAlgo()
No public properties found
No constants found
convertSignData()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

generate()

generate(string  $data, resource  $privateKey) : string

签名(计算 Sign 值)

Parameters

string $data
resource $privateKey

Throws

\Alipay\Exception\AlipayOpenSslException
\Alipay\Exception\AlipayBase64Exception

Returns

string

generateByParams()

generateByParams(array  $params, resource  $privateKey) : string

将参数数组签名(计算 Sign 值)

Parameters

array $params
resource $privateKey

Returns

string

verify()

verify(string  $sign, string  $data, resource  $publicKey) : void

验签(验证 Sign 值)

Parameters

string $sign
string $data
resource $publicKey

Throws

\Alipay\Exception\AlipayBase64Exception
\Alipay\Exception\AlipayInvalidSignException
\Alipay\Exception\AlipayOpenSslException

verifyByParams()

verifyByParams(array  $params, resource  $publicKey) : void

异步通知验签(验证 Sign 值)

Parameters

array $params
resource $publicKey

getSignType()

getSignType() 

getSignAlgo()

getSignAlgo() 

convertSignData()

convertSignData(array  $params) : string

将数组转换为待签名数据

Parameters

array $params

Returns

string