From 768fd0ed349f80479dcad5b44f5e57f9706be6b0 Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Thu, 29 Jun 2023 20:20:58 +0200 Subject: [PATCH] Update kDoc of RevocatioNState --- .../pgpainless/wot/dijkstra/sq/RevocationState.kt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RevocationState.kt b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RevocationState.kt index 559dde46..d97d175b 100644 --- a/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RevocationState.kt +++ b/wot-dijkstra/src/main/kotlin/org/pgpainless/wot/dijkstra/sq/RevocationState.kt @@ -7,13 +7,26 @@ package org.pgpainless.wot.dijkstra.sq import java.util.* /** - * Revocation State of + * Revocation State of a certificate. */ class RevocationState private constructor(val type: Type, val timestamp: Date?) { enum class Type { + /** + * Signatures issued by a soft-revoked certificate after [timestamp] are no longer + * considered valid. + */ Soft, + + /** + * Signatures issued at any time by a hard-revoked certificate are no longer considered valid, + * even if the creation time is before [timestamp]. + */ Hard, + + /** + * The certificate is still valid. + */ None }