Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
lbuchs\WebAuthn\Attestation\Format\FormatBase Class Reference
Inheritance diagram for lbuchs\WebAuthn\Attestation\Format\FormatBase:
lbuchs\WebAuthn\Attestation\Format\AndroidKey lbuchs\WebAuthn\Attestation\Format\AndroidSafetyNet lbuchs\WebAuthn\Attestation\Format\Apple lbuchs\WebAuthn\Attestation\Format\None lbuchs\WebAuthn\Attestation\Format\Packed lbuchs\WebAuthn\Attestation\Format\Tpm lbuchs\WebAuthn\Attestation\Format\U2f

Public Member Functions

 __construct ($AttestionObject, AuthenticatorData $authenticatorData)
 
 getCertificateChain ()
 returns the certificate chain in PEM format
 
 getCertificatePem ()
 returns the key X.509 certificate in PEM format
 
 validateAttestation ($clientDataHash)
 checks validity of the signature
 
 validateRootCertificate ($rootCas)
 validates the certificate against root certificates
 

Protected Member Functions

 _createCertificatePem ($x5c)
 create a PEM encoded certificate with X.509 binary data
 
 _createX5cChainFile ()
 creates a PEM encoded chain file
 
 _getCoseAlgorithm ($coseNumber)
 returns the name and openssl key for provided cose number.
 

Protected Attributes

 $_attestationObject = null
 
 $_authenticatorData = null
 
 $_x5c_chain = array()
 
 $_x5c_tempFile = null
 

Member Function Documentation

◆ _createCertificatePem()

lbuchs\WebAuthn\Attestation\Format\FormatBase::_createCertificatePem ( $x5c)
protected

create a PEM encoded certificate with X.509 binary data

Parameters
string$x5c
Return values
string

◆ _createX5cChainFile()

lbuchs\WebAuthn\Attestation\Format\FormatBase::_createX5cChainFile ( )
protected

creates a PEM encoded chain file

Return values
string|null

◆ _getCoseAlgorithm()

lbuchs\WebAuthn\Attestation\Format\FormatBase::_getCoseAlgorithm ( $coseNumber)
protected

returns the name and openssl key for provided cose number.

Parameters
int$coseNumber
Return values
stdClass|null

◆ getCertificateChain()

lbuchs\WebAuthn\Attestation\Format\FormatBase::getCertificateChain ( )

returns the certificate chain in PEM format

Return values
string|null

◆ getCertificatePem()

◆ validateAttestation()

lbuchs\WebAuthn\Attestation\Format\FormatBase::validateAttestation ( $clientDataHash)

◆ validateRootCertificate()

lbuchs\WebAuthn\Attestation\Format\FormatBase::validateRootCertificate ( $rootCas)

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