Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | /** |
| 6 | * SPDX-FileCopyrightText: 2026 LibreCode coop and contributors |
| 7 | * SPDX-License-Identifier: AGPL-3.0-or-later |
| 8 | */ |
| 9 | |
| 10 | namespace OCA\Libresign\Enum; |
| 11 | |
| 12 | /** |
| 13 | * Represents the outcome of a CRL revocation check performed by |
| 14 | * {@see \OCA\Libresign\Service\Crl\CrlRevocationChecker}. |
| 15 | */ |
| 16 | enum CrlValidationStatus: string { |
| 17 | /** CRL fetched and certificate serial not listed as revoked. */ |
| 18 | case VALID = 'valid'; |
| 19 | /** Certificate serial found in the CRL – certificate is revoked. */ |
| 20 | case REVOKED = 'revoked'; |
| 21 | /** Admin disabled external CRL validation; local CRLs were not checked. */ |
| 22 | case DISABLED = 'disabled'; |
| 23 | /** Certificate uses the legacy LibreSign CRL URL that lacks CA generation metadata. */ |
| 24 | case LEGACY_DISTRIBUTION_POINT = 'legacy_distribution_point'; |
| 25 | /** All CRL Distribution Point URLs were unreachable. */ |
| 26 | case URLS_INACCESSIBLE = 'urls_inaccessible'; |
| 27 | /** A download or parse error occurred while fetching the CRL. */ |
| 28 | case VALIDATION_ERROR = 'validation_error'; |
| 29 | /** CRL was parsed but the check was inconclusive. */ |
| 30 | case VALIDATION_FAILED = 'validation_failed'; |
| 31 | /** The crlDistributionPoints extension is present but contains no URLs. */ |
| 32 | case NO_URLS = 'no_urls'; |
| 33 | /** The certificate has no crlDistributionPoints extension at all. */ |
| 34 | case MISSING = 'missing'; |
| 35 | } |