略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: OAuth::setRSACertificate

2024-05-02

OAuth::setRSACertificate

(PECL OAuth >= 1.0.0)

OAuth::setRSACertificate设置 RSA 证书

说明

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

设置 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'));
?>

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/oauth.setrsacertificate.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3