Total Complexity | 2 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | final class RSA extends AbstractSigner implements SignatureAlgorithm |
||
18 | { |
||
19 | /** @var string */ |
||
20 | protected string $default_backend = OpenSSL::class; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * RSA constructor. |
||
25 | * |
||
26 | * @param \SimpleSAML\XMLSecurity\Key\AsymmetricKey $key The asymmetric key (either public or private) to use. |
||
27 | * @param string $algId The identifier of this algorithm. |
||
28 | */ |
||
29 | public function __construct(AsymmetricKey $key, string $algId = C::SIG_RSA_SHA256) |
||
32 | } |
||
33 | |||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | public static function getSupportedAlgorithms(): array |
||
43 |