2021-02-11 13:22:51 +01:00
|
|
|
<?php
|
|
|
|
|
2023-04-09 02:40:21 +02:00
|
|
|
namespace NoccyLabs\SimpleJWT\Key;
|
2021-02-11 13:22:51 +01:00
|
|
|
|
2023-04-09 02:40:21 +02:00
|
|
|
class JWTPlaintextKey implements KeyInterface
|
2021-02-11 13:22:51 +01:00
|
|
|
{
|
|
|
|
private $key;
|
|
|
|
|
|
|
|
public function __construct(string $key)
|
|
|
|
{
|
|
|
|
$this->key = $key;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBinaryKey(): string
|
|
|
|
{
|
|
|
|
return $this->key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|