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: 179 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: AttestationObject  - X-Ref


__construct($binary , $allowedFormats)   X-Ref
No description

getAttestationFormatName()   X-Ref
returns the attestation format name

return: string

getAttestationFormat()   X-Ref
returns the attestation format class

return: Format\FormatBase

getAuthenticatorData()   X-Ref
returns the attestation public key in PEM format

return: AuthenticatorData

getCertificateChain()   X-Ref
returns the certificate chain as PEM

return: string|null

getCertificateIssuer()   X-Ref
return the certificate issuer as string

return: string

getCertificateSubject()   X-Ref
return the certificate subject as string

return: string

getCertificatePem()   X-Ref
returns the key 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

validateRpIdHash($rpIdHash)   X-Ref
checks if the RpId-Hash is valid

param: string$rpIdHash
return: bool