From fdcc750eee700c5ea7b9efd9d0136fd850b977df Mon Sep 17 00:00:00 2001 From: liulu Date: Fri, 8 Nov 2024 08:57:22 +0800 Subject: [PATCH] fix --- chsm-common/src/main/java/com/sunyard/chsm/enums/KeyUsage.java | 2 +- {chsm-model => chsm-params}/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename {chsm-model => chsm-params}/pom.xml (94%) diff --git a/chsm-common/src/main/java/com/sunyard/chsm/enums/KeyUsage.java b/chsm-common/src/main/java/com/sunyard/chsm/enums/KeyUsage.java index 341012a..f28593f 100644 --- a/chsm-common/src/main/java/com/sunyard/chsm/enums/KeyUsage.java +++ b/chsm-common/src/main/java/com/sunyard/chsm/enums/KeyUsage.java @@ -56,7 +56,7 @@ public enum KeyUsage { public static boolean hasUsage(int nowUsage, KeyUsage usage) { - return (nowUsage & usage.value) > 0; + return (nowUsage & usage.value) >= usage.value; } } diff --git a/chsm-model/pom.xml b/chsm-params/pom.xml similarity index 94% rename from chsm-model/pom.xml rename to chsm-params/pom.xml index bbc9399..b54c4e8 100644 --- a/chsm-model/pom.xml +++ b/chsm-params/pom.xml @@ -9,7 +9,7 @@ 1.0-SNAPSHOT - chsm-model + chsm-params 8 diff --git a/pom.xml b/pom.xml index b02573f..52f142d 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ 1.0-SNAPSHOT chsm-web-server - chsm-model + chsm-params chsm-web-manage chsm-common