(PECL OAuth >= 1.0.0)
OAuth::setRSACertificate — Set the RSA certificate
Sets the RSA certificate.
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.
certThe RSA certificate.
Returns TRUE on success, or FALSE on failure (e.g., the RSA certificate
cannot be parsed.)
| Версия | Описание |
|---|---|
| 1.0.0 |
Раньше при ошибке возвращался NULL вместо FALSE.
|
Пример #1 An OAuth::setRsaCertificate() example
<?php
$consume = new OAuth('1234', '', OAUTH_SIG_METHOD_RSASHA1);
$consume->setRSACertificate(file_get_contents('test.pem'));
?>