class BuiltInAttestationFormat implements AttestationFormatInterface (View source)

Methods

__construct(string $formatId, string $statementClass, string $verifierClass)

No description

string
getFormatId()

Returns format ID for this attestation format. For example 'fido-u2f'.

createStatement(AttestationObject $attestationObject)

Creates an attestation statement object from an attestation object. Should be called only for attestation objects with format ID supported by this class (see getFormatId).

getVerifier()

Gets a reference to a verifier that verifies attestation statements of the format supported by this class.

Details

__construct(string $formatId, string $statementClass, string $verifierClass)

Parameters

string $formatId
string $statementClass
string $verifierClass

string getFormatId()

Returns format ID for this attestation format. For example 'fido-u2f'.

Return Value

string

AttestationStatementInterface createStatement(AttestationObject $attestationObject)

Creates an attestation statement object from an attestation object. Should be called only for attestation objects with format ID supported by this class (see getFormatId).

Parameters

AttestationObject $attestationObject

Return Value

AttestationStatementInterface

Exceptions

DataValidationException

AttestationVerifierInterface getVerifier()

Gets a reference to a verifier that verifies attestation statements of the format supported by this class.