PHP 8.3.4 Released!

OAuth::setRSACertificate

(PECL OAuth >= 1.0.0)

OAuth::setRSACertificate设置 RSA 证书

说明

public OAuth::setRSACertificate(string $cert): mixed

设置 RSA 证书。

警告

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

参数

cert

RSA 证书。

返回值

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

更新日志

版本 说明
PECL oauth 1.0.0 以前失败时返回 null,而不是 false

示例

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

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

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

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top