From c7d220e2c8211217f9b15f2052b0a309261b9fc4 Mon Sep 17 00:00:00 2001 From: Thomas Diesler Date: Mon, 31 Jul 2023 14:39:00 +0200 Subject: [PATCH] [#331] Prefer IllegalStateException on revoked VC --- .../auditor/policies/CredentialPropertyVerificationPolicies.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/id/walt/auditor/policies/CredentialPropertyVerificationPolicies.kt b/src/main/kotlin/id/walt/auditor/policies/CredentialPropertyVerificationPolicies.kt index 265b8792..ed1d7bb9 100644 --- a/src/main/kotlin/id/walt/auditor/policies/CredentialPropertyVerificationPolicies.kt +++ b/src/main/kotlin/id/walt/auditor/policies/CredentialPropertyVerificationPolicies.kt @@ -65,7 +65,7 @@ class CredentialStatusPolicy : SimpleVerificationPolicy() { is TokenRevocationStatus -> "CredentialStatus (type ${cs.type}) was REVOKED at timestamp ${status.timeOfRevocation} for id ${cs.id}." else -> "CredentialStatus ${cs.type} was REVOKED for id ${cs.id}" }.let { - VerificationPolicyResult.failure(IllegalArgumentException(it)) + VerificationPolicyResult.failure(IllegalStateException(it)) } }