PHP Velho Oeste 2024

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 이전에는 실패시 FALSE가 아닌 NULL을 반환했습니다.

예제

Example #1 An OAuth::setRsaCertificate() example

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

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

참고

add a note add a note

User Contributed Notes

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