Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 193 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: FormatBase  - X-Ref

__construct($AttestionObject, AuthenticatorData $authenticatorData)   X-Ref

param: Array $AttestionObject
param: AuthenticatorData $authenticatorData

__destruct()   X-Ref
No description

getCertificateChain()   X-Ref
returns the certificate chain in PEM format

return: string|null

getCertificatePem()   X-Ref
returns the key X.509 certificate in PEM format

return: string

validateAttestation($clientDataHash)   X-Ref
checks validity of the signature

param: string $clientDataHash
return: bool

validateRootCertificate($rootCas)   X-Ref
validates the certificate against root certificates

param: array $rootCas
return: boolean

_createCertificatePem($x5c)   X-Ref
create a PEM encoded certificate with X.509 binary data

param: string $x5c
return: string

_createX5cChainFile()   X-Ref
creates a PEM encoded chain file

return: type

_getCoseAlgorithm($coseNumber)   X-Ref
returns the name and openssl key for provided cose number.

param: int $coseNumber
return: \stdClass|null