From c6a220a439404409904fd2f7526fab30295a3ee4 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Thu, 27 Mar 2014 21:42:38 -0400 Subject: 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 --- .../com/netscape/cmstools/tps/authenticator/AuthenticatorCLI.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'base/java-tools/src/com') 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 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); + } } } -- cgit