<?php
declare(strict_types=1);
namespace ParagonIE\Halite\Asymmetric;
use \ParagonIE\Halite\Contract;
use \ParagonIE\Halite\Key;
class PublicKey extends Key implements Contract\KeyInterface
{
/**
* @param string $keyMaterial - The actual key data
* @param bool $signing - Is this a signing key?
*/
public function __construct(string $keyMaterial = '', ...$args)
{
$signing = \count($args) >= 1
? $args[0]
: false;
parent::__construct($keyMaterial, true, $signing, true);
}
}
|