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