2024-11-12 17:07:16 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
2024-11-28 10:21:34 -05:00
|
|
|
namespace NCU\Security\Signature\Enum;
|
2024-11-12 17:07:16 -05:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* current status of signatory. is it trustable or not ?
|
|
|
|
|
*
|
|
|
|
|
* - SYNCED = the remote instance is trustable.
|
2024-11-21 05:25:00 -05:00
|
|
|
* - BROKEN = the remote instance does not use the same key pairs than previously
|
2024-11-12 17:07:16 -05:00
|
|
|
*
|
|
|
|
|
* @experimental 31.0.0
|
2026-01-09 04:58:55 -05:00
|
|
|
* @deprecated 33.0.0 use {@see \OCP\Security\Signature\Enum\SignatoryStatus}
|
2024-11-12 17:07:16 -05:00
|
|
|
*/
|
|
|
|
|
enum SignatoryStatus: int {
|
2026-01-09 04:58:55 -05:00
|
|
|
/**
|
|
|
|
|
* @experimental 31.0.0
|
|
|
|
|
* @deprecated 33.0.0
|
|
|
|
|
*/
|
2024-11-12 17:07:16 -05:00
|
|
|
case SYNCED = 1;
|
2026-01-09 04:58:55 -05:00
|
|
|
/**
|
|
|
|
|
* @experimental 31.0.0
|
|
|
|
|
* @deprecated 33.0.0
|
|
|
|
|
*/
|
2024-11-12 17:07:16 -05:00
|
|
|
case BROKEN = 9;
|
|
|
|
|
}
|