OAuth
PHP Manual

OAuth::setRSACertificate

(PECL OAuth >= 1.0.0)

OAuth::setRSACertificateSet the RSA certificate

说明

public mixed OAuth::setRSACertificate ( string $cert )

Sets the RSA certificate.

Warning

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

参数

cert

The RSA certificate.

返回值

Returns TRUE on success, or FALSE on failure (e.g., the RSA certificate cannot be parsed.)

更新日志

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

范例

Example #1 An OAuth::setRsaCertificate() example

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

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

参见


OAuth
PHP Manual