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