Mass removal of all Tabs (Style Warnings)
[aaf/authz.git] / cadi / core / src / main / java / org / onap / aaf / cadi / lur / ConfigPrincipal.java
index 43dd101..c1b477b 100644 (file)
@@ -28,42 +28,42 @@ import org.onap.aaf.cadi.GetCred;
 import org.onap.aaf.cadi.Symm;
 
 public class ConfigPrincipal implements Principal, GetCred {
-       private String name;
-       private byte[] cred;
-       private String content;
+    private String name;
+    private byte[] cred;
+    private String content;
 
-       public ConfigPrincipal(String name, String passwd) {
-               this.name = name;
-               this.cred = passwd.getBytes();
-               content = null;
-       }
+    public ConfigPrincipal(String name, String passwd) {
+        this.name = name;
+        this.cred = passwd.getBytes();
+        content = null;
+    }
 
-       public ConfigPrincipal(String name, byte[] cred) {
-               this.name = name;
-               this.cred = cred;
-               content = null;
-       }
+    public ConfigPrincipal(String name, byte[] cred) {
+        this.name = name;
+        this.cred = cred;
+        content = null;
+    }
 
-       public String getName() {
-               return name;
-       }
-       
-       public byte[] getCred() {
-               return cred;
-       }
+    public String getName() {
+        return name;
+    }
+    
+    public byte[] getCred() {
+        return cred;
+    }
 
-       public String toString() {
-               return name;
-       }
-       
-       public String getAsBasicAuthHeader() throws IOException {
-               if(content ==null) {
-                       String s = name + ':' + new String(cred);
-                       content = "Basic " + Symm.base64.encode(s);  
-               } else if(!content.startsWith("Basic ")) { // content is the saved password from construction
-                       String s = name + ':' + content;
-                       content = "Basic " + Symm.base64.encode(s);  
-               }
-               return content;
-       }
+    public String toString() {
+        return name;
+    }
+    
+    public String getAsBasicAuthHeader() throws IOException {
+        if(content ==null) {
+            String s = name + ':' + new String(cred);
+            content = "Basic " + Symm.base64.encode(s);  
+        } else if(!content.startsWith("Basic ")) { // content is the saved password from construction
+            String s = name + ':' + content;
+            content = "Basic " + Symm.base64.encode(s);  
+        }
+        return content;
+    }
 }