Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse McConnell2013-05-30 10:46:15 -0400
committerJesse McConnell2013-05-30 10:46:43 -0400
commit8dc84b97e41f416514d05171fa86b0db90dc1f13 (patch)
tree1ea24d999db41166e6e5c09bf4ac5e25778830f1
parent3a46498a27e249e3674a0f7d3441362221c27034 (diff)
downloadorg.eclipse.jetty.project-8dc84b97e41f416514d05171fa86b0db90dc1f13.tar.gz
org.eclipse.jetty.project-8dc84b97e41f416514d05171fa86b0db90dc1f13.tar.xz
org.eclipse.jetty.project-8dc84b97e41f416514d05171fa86b0db90dc1f13.zip
remove superfluous roles for example
-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