OAuth::setRSACertificate
(PECL OAuth >= 1.0.0)
OAuth::setRSACertificate — 设置 RSA 证书
参数
-
cert
-
RSA 证书。
返回值
成功则返回 true
,失败返回 false
(例如,RSA证书不能被传递)。
更新日志
版本 | 说明 |
---|---|
1.0.0 |
以前失败时返回 null ,而不是 false 。
|
范例
示例 #1 一个 OAuth::setRsaCertificate() 例子
<?php
$consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);
$consume->setRSACertificate(file_get_contents('test.pem'));
?>
参见
- OAuth::setCaPath() - 设置 CA 路径和信息

User Contributed Notes
There are no user contributed notes for this page.
备份地址:http://www.lvesu.com/blog/php/oauth.setrsacertificate.php