Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
Google_Verifier_Pem Class Reference
Inheritance diagram for Google_Verifier_Pem:
Google_Verifier_Abstract

Public Member Functions

 __construct ($pem)
 Constructs a verifier from the supplied PEM-encoded certificate.
 
 verify ($data, $signature)
 Verifies the signature on data.
 

Constructor & Destructor Documentation

◆ __construct()

Google_Verifier_Pem::__construct ( $pem)

Constructs a verifier from the supplied PEM-encoded certificate.

$pem: a PEM encoded certificate (not a file).

Parameters
$pem
Exceptions
Google_Auth_Exception
Google_Exception

Member Function Documentation

◆ verify()

Google_Verifier_Pem::verify ( $data,
$signature )

Verifies the signature on data.

Returns true if the signature is valid, false otherwise.

Parameters
$data
$signature
Exceptions
Google_Auth_Exception
Return values
bool

Reimplemented from Google_Verifier_Abstract.


The documentation for this class was generated from the following file: