Your IP : 3.140.195.8


Current Path : /home/lentoinv/api.lentoria.com/vendor/lcobucci/jwt/src/Signer/
Upload File :
Current File : //home/lentoinv/api.lentoria.com/vendor/lcobucci/jwt/src/Signer/Rsa.php

<?php
declare(strict_types=1);

namespace Lcobucci\JWT\Signer;

use const OPENSSL_KEYTYPE_RSA;

abstract class Rsa extends OpenSSL
{
    final public function sign(string $payload, Key $key): string
    {
        return $this->createSignature($key->contents(), $key->passphrase(), $payload);
    }

    final public function verify(string $expected, string $payload, Key $key): bool
    {
        return $this->verifySignature($expected, $payload, $key->contents());
    }

    final public function keyType(): int
    {
        return OPENSSL_KEYTYPE_RSA;
    }
}

?>