Replaced all tabs with spaces in java and pom.xml
[so.git] / common / src / main / java / org / onap / so / security / UserDetailsServiceImpl.java
index 90d484e..91d5d7e 100644 (file)
@@ -30,27 +30,27 @@ import java.util.List;
 @ConfigurationProperties(prefix = "spring.security")
 public class UserDetailsServiceImpl implements UserDetailsService {
 
-       private List<UserCredentials> usercredentials;
+    private List<UserCredentials> usercredentials;
 
-       public List<UserCredentials> getUsercredentials() {
-               return usercredentials;
-       }
+    public List<UserCredentials> getUsercredentials() {
+        return usercredentials;
+    }
 
-       public void setUsercredentials(List<UserCredentials> usercredentials) {
-               this.usercredentials = usercredentials;
-       }
+    public void setUsercredentials(List<UserCredentials> usercredentials) {
+        this.usercredentials = usercredentials;
+    }
 
-       @Override
-       public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
+    @Override
+    public UserDetails loadUserByUsername(String username) throws UsernameNotFoundException {
 
-               for (int i = 0; usercredentials != null && i < usercredentials.size(); i++) {
-                       if (usercredentials.get(i).getUsername().equals(username)) {
-                               return User.withUsername(username).password(usercredentials.get(i).getPassword())
-                                               .roles(usercredentials.get(i).getRole()).build();
-                       }
-               }
+        for (int i = 0; usercredentials != null && i < usercredentials.size(); i++) {
+            if (usercredentials.get(i).getUsername().equals(username)) {
+                return User.withUsername(username).password(usercredentials.get(i).getPassword())
+                        .roles(usercredentials.get(i).getRole()).build();
+            }
+        }
 
-               throw new UsernameNotFoundException("User not found, username: " + username);
-       }
+        throw new UsernameNotFoundException("User not found, username: " + username);
+    }
 
 }