Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/embedded/src/main/java/org/eclipse/jetty/embedded/SecuredHelloHandler.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SecuredHelloHandler.java b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SecuredHelloHandler.java
index 8a5db20146..043a6087b9 100644
--- a/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SecuredHelloHandler.java
+++ b/examples/embedded/src/main/java/org/eclipse/jetty/embedded/SecuredHelloHandler.java
@@ -51,11 +51,7 @@ public class SecuredHelloHandler
mapping.setPathSpec( "/*" );
mapping.setConstraint( constraint );
- Set<String> knownRoles = new HashSet<String>();
- knownRoles.add("user");
- knownRoles.add("admin");
-
- security.setConstraintMappings(Collections.singletonList(mapping), knownRoles);
+ security.setConstraintMappings(Collections.singletonList(mapping));
security.setAuthenticator(new BasicAuthenticator());
security.setLoginService(loginService);
security.setStrict(false);

Back to the top