2024-11-12 21:07:16 -01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
*/
|
2024-11-28 14:21:34 -01:00
|
|
|
namespace NCU\Security\Signature\Enum;
|
2024-11-12 21:07:16 -01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* list of available algorithm when signing payload
|
|
|
|
*
|
|
|
|
* @experimental 31.0.0
|
|
|
|
*/
|
|
|
|
enum SignatureAlgorithm: string {
|
2024-12-02 11:30:37 -01:00
|
|
|
/** @experimental 31.0.0 */
|
|
|
|
case RSA_SHA256 = 'rsa-sha256';
|
|
|
|
/** @experimental 31.0.0 */
|
|
|
|
case RSA_SHA512 = 'rsa-sha512';
|
2024-11-12 21:07:16 -01:00
|
|
|
}
|