Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
lbuchs\WebAuthn\Attestation\Format\Packed Class Reference
Inheritance diagram for lbuchs\WebAuthn\Attestation\Format\Packed:
lbuchs\WebAuthn\Attestation\Format\FormatBase

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.
 
 _validateOverX5c ($clientDataHash)
 validate if x5c is present
 
 _validateSelfAttestation ($clientDataHash)
 validate if self attestation is in use
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ __construct()

lbuchs\WebAuthn\Attestation\Format\Packed::__construct ( $AttestionObject,
AuthenticatorData $authenticatorData )

Member Function Documentation

◆ _createCertificatePem()

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

create a PEM encoded certificate with X.509 binary data

Parameters
string$x5c
Return values
string

◆ _createX5cChainFile()

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

creates a PEM encoded chain file

Return values
type

◆ _getCoseAlgorithm()

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

returns the name and openssl key for provided cose number.

Parameters
int$coseNumber
Return values
stdClass|null

◆ _validateOverX5c()

lbuchs\WebAuthn\Attestation\Format\Packed::_validateOverX5c ( $clientDataHash)
protected

validate if x5c is present

Parameters
string$clientDataHash
Return values
bool
Exceptions
WebAuthnException

◆ _validateSelfAttestation()

lbuchs\WebAuthn\Attestation\Format\Packed::_validateSelfAttestation ( $clientDataHash)
protected

validate if self attestation is in use

Parameters
string$clientDataHash
Return values
bool

◆ getCertificateChain()

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

returns the certificate chain in PEM format

Return values
string|null

◆ getCertificatePem()

lbuchs\WebAuthn\Attestation\Format\Packed::getCertificatePem ( )

returns the key X.509 certificate in PEM format

Return values
string

Reimplemented from lbuchs\WebAuthn\Attestation\Format\FormatBase.

◆ validateAttestation()

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

checks validity of the signature

Parameters
string$clientDataHash
Return values
bool
Exceptions
WebAuthnException

Reimplemented from lbuchs\WebAuthn\Attestation\Format\FormatBase.

◆ validateRootCertificate()

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

validates the certificate against root certificates

Parameters
array$rootCas
Return values
boolean
Exceptions
WebAuthnException

Reimplemented from lbuchs\WebAuthn\Attestation\Format\FormatBase.


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