summaryrefslogtreecommitdiffstats
path: root/base/java-tools/src/com/netscape/cmstools/tps
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-03-27 21:42:38 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-03-29 18:20:55 -0400
commitc6a220a439404409904fd2f7526fab30295a3ee4 (patch)
tree428f66606d56723c617c34cdc852558654d19e4d /base/java-tools/src/com/netscape/cmstools/tps
parentef56ae955857d607f04e5298bf200c755d1d0ca5 (diff)
downloadpki-c6a220a439404409904fd2f7526fab30295a3ee4.tar.gz
pki-c6a220a439404409904fd2f7526fab30295a3ee4.tar.xz
pki-c6a220a439404409904fd2f7526fab30295a3ee4.zip
Refactored TPS authenticators.
The TPS authenticators has been modified to use PATCH for update operation as required by Backbone. The AuthenticatorData class has been modified to accept null properties to indicate that the properties are not being updated. The AuthenticatorModel class has been modified to use JSON data type for enable and disable operations. Ticket #654
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/tps')
-rw-r--r--base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorCLI.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorCLI.java b/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorCLI.java
index ebdf80890..8f802f57b 100644
--- a/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorCLI.java
+++ b/base/java-tools/src/com/netscape/cmstools/tps/authenticator/AuthenticatorCLI.java
@@ -59,9 +59,11 @@ public class AuthenticatorCLI extends CLI {
if (showProperties) {
System.out.println(" Properties:");
Map<String, String> properties = authenticatorData.getProperties();
- for (String name : properties.keySet()) {
- String value = properties.get(name);
- System.out.println(" " + name + ": " + value);
+ if (properties != null) {
+ for (String name : properties.keySet()) {
+ String value = properties.get(name);
+ System.out.println(" " + name + ": " + value);
+ }
}
}