Перейти к содержимому
docs.
WORKSPACE

Документации проектов

Открыть каталог проектов
Localzet ServerАсинхронный PHP-серверTriangleФреймворк и компонентыMIX IDИдентификация и интеграцииHack APIПубличные API хакатонаACNПроект и компонентыUserlay / UserNetПроект и компонентыAxiomПроект и компонентыМесседжинг через почтуПроект и компонентыLWT / JWT / JOSEПроект и компонентыФинансовая аналитика KimaiПроект и компонентыМультипарадигмальная БДПроект и компонентыZorin PlatformПроект и компоненты✓Zorin TrustПроект и компонентыFloraScope / VegwatchПроект и компонентыaegis-qДокументация проектаaevumdbДокументация проектаauditДокументация проектаauto-invest-managerАвтотрейдерcaine-companionДокументация проектаcertbot-cloudflareДокументация проектаClusterLocalzet Server / ClustercmdveilДокументация проектаConsolePHP CLICronБиблиотеки Localzet Serverdata-connectorДокументация проектаdevice-controlDevice Controlenn-projectДокументация проектаEventsБиблиотеки Localzet ServerflowsintДокументация проектаforgeДокументация проектаHttpClientБиблиотеки Localzet ServerinterpreterСобственный языкinvariaДокументация проектаkeynotesДокументация проектаknotrouteKnotroutelaravel-personal-analyticsДокументация проектаlocalzet-osДокументация проектаmeridianДокументация проектаMQTTБиблиотеки Localzet Servernano-kernelСобственная ОСNoterДокументация проектаpersonal-analyticsДокументация проектаProxyБиблиотеки Localzet ServerPSRБиблиотеки Localzet ServerPSR-7Библиотеки Localzet Serverrschs-monitorДокументация проектаsemsealДокументация проектаshardsealДокументация проектаSocketIOБиблиотеки Localzet ServerSOCKS5Библиотеки Localzet Serverstandalone-analyticsДокументация проектаstatic-php-cliДокументация проектаStorageБиблиотеки Localzet ServersutureДокументация проектаtempoweaveДокументация проектаttsСинтез речиTunnelБиблиотеки Localzet Serverui-kitUI KitvesperДокументация проектаWebAnalyzerWebAnalyzerzorin-access-brokerДокументация проектаzorin-authority-brokerДокументация проектаzorin-authority-sdk-phpДокументация проектаzorin-authority-sdk-pythonДокументация проектаzorin-authority-sdk-tsДокументация проектаzorin-client-intelДокументация проектаzorin-device-core-aospДокументация проектаzorin-host-agentДокументация проектаzorin-native-labДокументация проектаzorin-nodeДокументация проектаzorin-opsДокументация проектаdonstu-python-sdkДокументация проектаfloortraceFloortraceserver-rsLocalzet Server / Cluster
Каталог

WebAuthn — API

src/WebAuthn.php

function __construct(string $name, string $domain, array $allowedFormats = [], bool $useBase64UrlEncoding = false)
function createAuth(mixed $userId, string $userName, string $userDisplayName, array $excludeCredentialIds = [], int $timeout = 60, bool|string $requireResidentKey = false, bool|string $requireVerification = true, bool $crossPlatformAttachment = null): stdClass
function verifyAuth(array $allowCredentials, int $timeout = 60, bool|string $requireVerification = true): stdClass
function processCreate(string $clientDataJSON, string $attestationObject, ByteBuffer|string $challenge, bool $requireVerification = true, bool $requireUserPresent = true, bool $failIfRootMismatch = false, bool $requireCtsProfileMatch = false): array
function processGet(string $clientDataJSON, string $authenticatorData, string $signature, string $credentialPublicKey, ByteBuffer|string $challenge, int $prevSignatureCnt = null, bool $requireVerification = false, bool $requireUserPresent = true): bool
function getChallenge(): ByteBuffer

src/WebAuthn/Attestation/AttestationObject.php

function __construct($binary, $allowedFormats)
function getAttestationFormatName(): string
function getAttestationFormat(): Format\FormatBase|Format\Tpm|Format\Apple|Format\Packed|Format\None|Format\AndroidKey|Format\AndroidSafetyNet|Format\U2f
function getAuthenticatorData(): AuthenticatorData
function getCertificateChain(): ?string
function getCertificateIssuer(): string
function getCertificateSubject(): string
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool
function validateRpIdHash(string $rpIdHash): bool

src/WebAuthn/Attestation/AuthenticatorData.php

function __construct(string $binary)
function getAAGUID(): string
function getBinary(): string
function getCredentialId(): string
function getPublicKeyPem(): string
function getPublicKeyU2F(): string
function getRpIdHash(): string
function getSignCount(): int
function getUserPresent(): bool
function getUserVerified(): bool

src/WebAuthn/Attestation/Format/AndroidKey.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/AndroidSafetyNet.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function ctsProfileMatch(): bool
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/Apple.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/FormatBase.php

function __construct(array $AttestionObject, AuthenticatorData $authenticatorData)
function __destruct()
function getCertificateChain(): ?string
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/None.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/Packed.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/Tpm.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Attestation/Format/U2f.php

function __construct($AttestionObject, AuthenticatorData $authenticatorData)
function getCertificatePem(): ?string
function validateAttestation(string $clientDataHash): bool
function validateRootCertificate(array $rootCas): bool

src/WebAuthn/Binary/ByteBuffer.php

function __construct($binaryData)
static function fromBase64Url(string $base64url): ByteBuffer
static function fromHex(string $hex): ByteBuffer
static function randomBuffer(string $length): ByteBuffer
function getBytes($offset, $length): string
function getByteVal($offset): int
function getJson($jsonFlags = 0)
function getLength(): int
function getUint16Val($offset)
function getUint32Val($offset)
function getUint64Val($offset)
function getHalfFloatVal($offset): float|int
function getFloatVal($offset)
function getDoubleVal($offset)
function getBinaryString(): string
function equals(ByteBuffer|string $buffer): bool
function getHex(): string
function isEmpty(): bool
function jsonSerialize(): string
function serialize(): string
function unserialize(string $serialized): void
function __serialize(): array
function __toString(): string
function __unserialize(array $data)

src/WebAuthn/CBOR/CborDecoder.php

static function decode(ByteBuffer|string $bufOrBin): mixed
static function decodeInPlace(ByteBuffer|string $bufOrBin, int $startOffset, int &$endOffset = null): mixed
const CBOR_MAJOR_UNSIGNED_INT
const CBOR_MAJOR_TEXT_STRING
const CBOR_MAJOR_FLOAT_SIMPLE
const CBOR_MAJOR_NEGATIVE_INT
const CBOR_MAJOR_ARRAY
const CBOR_MAJOR_TAG
const CBOR_MAJOR_MAP
const CBOR_MAJOR_BYTE_STRING

src/WebAuthn/Certs.php

function addRootCertificates(string $path, array $certFileExtensions = null): void
function queryFidoMetaDataService(string $certFolder, bool $deleteCerts = true): int

src/WebAuthn/Exception.php

function __construct($message = "", $code = 0, $previous = null)
const INVALID_DATA
const INVALID_TYPE
const INVALID_CHALLENGE
const INVALID_ORIGIN
const INVALID_RELYING_PARTY
const INVALID_SIGNATURE
const INVALID_PUBLIC_KEY
const CERTIFICATE_NOT_TRUSTED
const USER_PRESENT
const USER_VERIFICATED
const SIGNATURE_COUNTER
const CRYPTO_STRONG
const BYTEBUFFER
const CBOR
const ANDROID_NOT_TRUSTED