diff options
author | Abhishek Koneru <akoneru@redhat.com> | 2014-03-20 11:33:13 -0400 |
---|---|---|
committer | Abhishek Koneru <akoneru@redhat.com> | 2014-04-16 17:24:23 -0400 |
commit | b602c041429e88c46362bc6e7cabe25c00a796ae (patch) | |
tree | 3ec7ec1eb293232e809da14f9883ef5cc08a971a /base/common/src/com | |
parent | 95a0fe5b755e84f8cabe28928fbaa7a5116708b1 (diff) | |
download | pki-b602c041429e88c46362bc6e7cabe25c00a796ae.tar.gz pki-b602c041429e88c46362bc6e7cabe25c00a796ae.tar.xz pki-b602c041429e88c46362bc6e7cabe25c00a796ae.zip |
New CLI commands for Key and KeyRequest resources.
This patch adds three new CLI commands -
KeyShowCLI, KeyRequestShowCLI, KeyModifyCLI
Diffstat (limited to 'base/common/src/com')
-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); |