diff --git a/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/UserApp.java b/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/MyUser.java similarity index 77% rename from helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/UserApp.java rename to helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/MyUser.java index f776f13457..e8009a98ad 100644 --- a/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/UserApp.java +++ b/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/MyUser.java @@ -4,13 +4,13 @@ import io.helidon.security.provider.httpauth.UserStore; import java.util.Collection; -public class UserApp implements UserStore.User { +public class MyUser implements UserStore.User { private String login; private char[] password; private Collection roles; - public UserApp(String login, char[] password, Collection roles) { + public MyUser(String login, char[] password, Collection roles) { this.login = login; this.password = password; this.roles = roles; diff --git a/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/WebApplicationSecurity.java b/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/WebApplicationSecurity.java index 0859726946..9a67f3d716 100644 --- a/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/WebApplicationSecurity.java +++ b/helidon/helidon-se/src/main/java/com/baeldung/helidon/se/security/WebApplicationSecurity.java @@ -23,9 +23,9 @@ public class WebApplicationSecurity { ServerConfiguration serverConfig = ServerConfiguration.fromConfig(config.get("server")); - Map users = new HashMap<>(); - users.put("user", new UserApp("user", "user".toCharArray(), Arrays.asList("ROLE_USER"))); - users.put("admin", new UserApp("admin", "admin".toCharArray(), Arrays.asList("ROLE_USER", "ROLE_ADMIN"))); + Map users = new HashMap<>(); + users.put("user", new MyUser("user", "user".toCharArray(), Arrays.asList("ROLE_USER"))); + users.put("admin", new MyUser("admin", "admin".toCharArray(), Arrays.asList("ROLE_USER", "ROLE_ADMIN"))); UserStore store = user -> Optional.ofNullable(users.get(user)); HttpBasicAuthProvider httpBasicAuthProvider = HttpBasicAuthProvider.builder()