Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
lbuchs\WebAuthn\Attestation\AttestationObject Class Reference

Public Member Functions

 __construct ($binary, $allowedFormats)
 
 getAttestationFormat ()
 returns the attestation format class
 
 getAttestationFormatName ()
 returns the attestation format name
 
 getAuthenticatorData ()
 returns the attestation public key in PEM format
 
 getCertificateChain ()
 returns the certificate chain as PEM
 
 getCertificateIssuer ()
 return the certificate issuer as string
 
 getCertificatePem ()
 returns the key certificate in PEM format
 
 getCertificateSubject ()
 return the certificate subject as string
 
 validateAttestation ($clientDataHash)
 checks validity of the signature
 
 validateRootCertificate ($rootCas)
 validates the certificate against root certificates
 
 validateRpIdHash ($rpIdHash)
 checks if the RpId-Hash is valid
 

Member Function Documentation

◆ getAttestationFormat()

lbuchs\WebAuthn\Attestation\AttestationObject::getAttestationFormat ( )

returns the attestation format class

Return values
Format\FormatBase

◆ getAttestationFormatName()

lbuchs\WebAuthn\Attestation\AttestationObject::getAttestationFormatName ( )

returns the attestation format name

Return values
string

◆ getAuthenticatorData()

lbuchs\WebAuthn\Attestation\AttestationObject::getAuthenticatorData ( )

returns the attestation public key in PEM format

Return values
AuthenticatorData

◆ getCertificateChain()

lbuchs\WebAuthn\Attestation\AttestationObject::getCertificateChain ( )

returns the certificate chain as PEM

Return values
string|null

◆ getCertificateIssuer()

lbuchs\WebAuthn\Attestation\AttestationObject::getCertificateIssuer ( )

return the certificate issuer as string

Return values
string

◆ getCertificatePem()

lbuchs\WebAuthn\Attestation\AttestationObject::getCertificatePem ( )

returns the key certificate in PEM format

Return values
string

◆ getCertificateSubject()

lbuchs\WebAuthn\Attestation\AttestationObject::getCertificateSubject ( )

return the certificate subject as string

Return values
string

◆ validateAttestation()

lbuchs\WebAuthn\Attestation\AttestationObject::validateAttestation ( $clientDataHash)

checks validity of the signature

Parameters
string$clientDataHash
Return values
bool
Exceptions
WebAuthnException

◆ validateRootCertificate()

lbuchs\WebAuthn\Attestation\AttestationObject::validateRootCertificate ( $rootCas)

validates the certificate against root certificates

Parameters
array$rootCas
Return values
boolean
Exceptions
WebAuthnException

◆ validateRpIdHash()

lbuchs\WebAuthn\Attestation\AttestationObject::validateRpIdHash ( $rpIdHash)

checks if the RpId-Hash is valid

Parameters
string$rpIdHash
Return values
bool

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