get('kty'), $this->allowedKeyTypes(), true)) { throw new InvalidArgumentException('Wrong key type.'); } if (! $key->has('k')) { throw new InvalidArgumentException('The key parameter "k" is missing.'); } $k = $key->get('k'); if (! is_string($k)) { throw new InvalidArgumentException('The key parameter "k" is invalid.'); } return Base64UrlSafe::decodeNoPadding($k); } #[Override] public function name(): string { return 'dir'; } #[Override] public function allowedKeyTypes(): array { return ['oct']; } #[Override] public function getKeyManagementMode(): string { return self::MODE_DIRECT; } }