Files

21 lines
555 B
PHP
Raw Permalink Normal View History

2026-10-11 03:18:48 -04:00
<?php
declare(strict_types=1);
namespace Pterodactyl\Contracts\Users;
2026-10-11 09:47:32 -04:00
use Illuminate\Validation\ValidationException;
2026-10-11 03:18:48 -04:00
use Pterodactyl\Models\User;
use Pterodactyl\Models\UserSSHKey;
interface CreatesSshKeys
{
/**
2026-10-11 23:50:53 -04:00
* The key is not parsed here, so pass one that is already validated along with its
* fingerprint. The name, key and fingerprint are validated here: none may be blank.
2026-10-11 09:47:32 -04:00
*
* @throws ValidationException
2026-10-11 03:18:48 -04:00
*/
public function create(User $user, string $name, string $publicKey, string $fingerprint): UserSSHKey;
}