From 3f40fb99ef54534cec32a68a6c073b40c0a39026 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Fri, 24 Jun 2022 12:04:38 +0200 Subject: [PATCH] Add RevocationState enum --- .../pgpainless/algorithm/RevocationState.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pgpainless-core/src/main/java/org/pgpainless/algorithm/RevocationState.java diff --git a/pgpainless-core/src/main/java/org/pgpainless/algorithm/RevocationState.java b/pgpainless-core/src/main/java/org/pgpainless/algorithm/RevocationState.java new file mode 100644 index 00000000..5a0fa142 --- /dev/null +++ b/pgpainless-core/src/main/java/org/pgpainless/algorithm/RevocationState.java @@ -0,0 +1,23 @@ +// SPDX-FileCopyrightText: 2022 Paul Schaub +// +// SPDX-License-Identifier: Apache-2.0 + +package org.pgpainless.algorithm; + +public enum RevocationState { + + /** + * Certificate is not revoked. + */ + notRevoked, + + /** + * Certificate is revoked with a soft revocation. + */ + softRevoked, + + /** + * Certificate is revoked with a hard revocation. + */ + hardRevoked +}