diff options
Diffstat (limited to 'base/common/src/com/netscape/certsrv/key')
-rw-r--r-- | base/common/src/com/netscape/certsrv/key/KeyClient.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/common/src/com/netscape/certsrv/key/KeyClient.java b/base/common/src/com/netscape/certsrv/key/KeyClient.java index a3382c3b9..97793ab39 100644 --- a/base/common/src/com/netscape/certsrv/key/KeyClient.java +++ b/base/common/src/com/netscape/certsrv/key/KeyClient.java @@ -195,7 +195,7 @@ public class KeyClient extends Client { if (id == null || status == null) { throw new IllegalArgumentException("Key Id and status must be specified."); } - if ((status != KeyResource.KEY_STATUS_ACTIVE) && (status != KeyResource.KEY_STATUS_INACTIVE)) { + if ((!status.equalsIgnoreCase(KeyResource.KEY_STATUS_ACTIVE)) && (!status.equalsIgnoreCase(KeyResource.KEY_STATUS_INACTIVE))) { throw new IllegalArgumentException("Invalid status value."); } Response response = keyClient.modifyKeyStatus(id, status); |