\Alipay\KeyAlipayKeyPair

Summary

Methods
Properties
Constants
create()
generate()
getPrivateKey()
getPublicKey()
setPrivateKey()
setPublicKey()
No public properties found
No constants found
No protected methods found
$publicKey
$privateKey
N/A
No private methods found
No private properties found
N/A

Properties

$publicKey

$publicKey : \Alipay\Key\AlipayPublicKey

支付宝公钥 支持文件路径或公钥字符串,用于验证签名

Type

\Alipay\Key\AlipayPublicKey

$privateKey

$privateKey : \Alipay\Key\AlipayPrivateKey

商户私钥(又称:小程序私钥,App私钥等) 支持文件路径或私钥字符串,用于生成签名

Type

\Alipay\Key\AlipayPrivateKey

Methods

create()

create(string  $privateKey, string  $publicKey) : static

创建密钥对

Parameters

string $privateKey
string $publicKey

Returns

static

generate()

generate(array  $configargs = array()) : static

生成密钥对

Parameters

array $configargs

Returns

static

setPrivateKey()

setPrivateKey(string  $key) : static

设置公钥

Parameters

string $key

Returns

static

setPublicKey()

setPublicKey(string  $key) : static

设置私钥

Parameters

string $key

Returns

static