22 lines
329 B
PHP
22 lines
329 B
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace Lcobucci\JWT\Signer\Rsa;
|
||
|
|
|
||
|
|
use Lcobucci\JWT\Signer\Rsa;
|
||
|
|
|
||
|
|
use const OPENSSL_ALGO_SHA384;
|
||
|
|
|
||
|
|
final class Sha384 extends Rsa
|
||
|
|
{
|
||
|
|
public function algorithmId(): string
|
||
|
|
{
|
||
|
|
return 'RS384';
|
||
|
|
}
|
||
|
|
|
||
|
|
public function algorithm(): int
|
||
|
|
{
|
||
|
|
return OPENSSL_ALGO_SHA384;
|
||
|
|
}
|
||
|
|
}
|