文字

OAuth::setRSACertificate

(PECL OAuth >= 1.0.0)

OAuth::setRSACertificate设置 RSA 证书

说明

public mixed OAuth::setRSACertificate ( string $cert )

设置 RSA 证书。

Warning

本函数还未编写文档,仅有参数列表。

参数

cert

RSA 证书。

返回值

成功则返回 TRUE ,失败返回 FALSE (例如,RSA证书不能被传递)。

更新日志

版本 说明
1.0.0 以前失败时返回 NULL ,而不是 FALSE

范例

Example #1 一个 OAuth::setRsaCertificate() 例子

<?php
$consume 
= new  OAuth ( '1234' '' OAUTH_SIG_METHOD_RSASHA1 );

$consume -> setRSACertificate ( file_get_contents ( 'test.pem' ));
?>

参见

  • OAuth::setCaPath() - 设置 CA 路径和信息
上一篇: 下一篇: