CakeFest 2024: The Official CakePHP Conference

OAuth::setRSACertificate

(PECL OAuth >= 1.0.0)

OAuth::setRSACertificateSet the RSA certificate

Descrizione

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

Sets the RSA certificate.

Avviso

Questa funzione, al momento non è documentata; è disponibile soltanto la lista degli argomenti.

Elenco dei parametri

cert

The RSA certificate.

Valori restituiti

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

Log delle modifiche

Versione Descrizione
PECL oauth 1.0.0 Prima di questa versione restituiva null in caso di errore, invece di false.

Esempi

Example #1 An OAuth::setRsaCertificate() example

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

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

Vedere anche:

add a note

User Contributed Notes

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