Remove Tabs, per Jococo
[aaf/authz.git] / auth / auth-certman / src / main / java / org / onap / aaf / auth / cm / validation / CertmanValidator.java
index 5835b31..cdd501c 100644 (file)
@@ -48,13 +48,13 @@ public class CertmanValidator extends Validator{
     private static final String MUST_HAVE_AT_LEAST = " must have at least ";
     private static final String IS_NULL = " is null.";
     private static final String ARTIFACTS_MUST_HAVE_AT_LEAST = "Artifacts must have at least ";
-       private static final Pattern ALPHA_NUM = Pattern.compile("[a-zA-Z0-9]*");
-       
-       private static boolean disallowTmp = true;
-       public static void allowTmp() {
-               disallowTmp=false;
-       }
-       
+    private static final Pattern ALPHA_NUM = Pattern.compile("[a-zA-Z0-9]*");
+    
+    private static boolean disallowTmp = true;
+    public static void allowTmp() {
+        disallowTmp=false;
+    }
+    
     public CertmanValidator nullBlankMin(String name, List<String> list, int min) {
         if (list==null) {
             msg(name + IS_NULL);
@@ -80,7 +80,7 @@ public class CertmanValidator extends Validator{
                 for (ArtiDAO.Data a : list) {
                     allRequired(a);
                     if(disallowTmp && a.dir!=null && a.dir.startsWith("/tmp")) {
-                       msg("Certificates may not be deployed into /tmp directory (they will be removed at a random time by O/S)");
+                        msg("Certificates may not be deployed into /tmp directory (they will be removed at a random time by O/S)");
                     }
                 }
             }
@@ -106,7 +106,7 @@ public class CertmanValidator extends Validator{
             nullOrBlank(MACHINE, a.machine);
             nullOrBlank("ca",a.ca);
             nullOrBlank("dir",a.dir);
-               match("NS must be dot separated AlphaNumeric",a.ns,NAME_CHARS);
+               match("NS must be dot separated AlphaNumeric",a.ns,NAME_CHARS);
             match("O/S User must be AlphaNumeric",a.os_user,ALPHA_NUM);
             // Note: AppName, Notify & Sponsor are currently not required
         }