Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
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: