|
Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250711) (9addea9f0ac)
|
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 | |
|
protected |
create a PEM encoded certificate with X.509 binary data
| string | $x5c |
| string |
|
protected |
creates a PEM encoded chain file
| string|null |
|
protected |
returns the name and openssl key for provided cose number.
| int | $coseNumber |
| stdClass|null |
| lbuchs\WebAuthn\Attestation\Format\FormatBase::getCertificateChain | ( | ) |
returns the certificate chain in PEM format
| string|null |
| lbuchs\WebAuthn\Attestation\Format\FormatBase::getCertificatePem | ( | ) |
returns the key X.509 certificate in PEM format
| string |
Reimplemented in 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, and lbuchs\WebAuthn\Attestation\Format\U2f.
| lbuchs\WebAuthn\Attestation\Format\FormatBase::validateAttestation | ( | $clientDataHash | ) |
checks validity of the signature
| string | $clientDataHash |
| bool |
| WebAuthnException |
Reimplemented in 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, and lbuchs\WebAuthn\Attestation\Format\U2f.
| lbuchs\WebAuthn\Attestation\Format\FormatBase::validateRootCertificate | ( | $rootCas | ) |
validates the certificate against root certificates
| array | $rootCas |
| boolean |
| WebAuthnException |
Reimplemented in 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, and lbuchs\WebAuthn\Attestation\Format\U2f.