@Override public void dump(Appendable out,String indent) throws IOException { // TODO these should all be beans dumpBeans(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet()); }
@Override public void dump(Appendable out,String indent) throws IOException { // TODO these should all be beans dumpBeans(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet()); }
@Override public void dump(Appendable out,String indent) throws IOException { // TODO these should all be beans dumpBeans(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet()); }
@Override public void dump(Appendable out,String indent) throws IOException { // TODO these should all be beans dumpBeans(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet()); }
@Override public void dump(Appendable out,String indent) throws IOException { // TODO these should all be beans dumpBeans(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet()); }
@Override public void dump(Appendable out,String indent) throws IOException { dumpThis(out); dump(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet(), getBeans(), TypeUtil.asList(getHandlers())); }
@Override public void dump(Appendable out,String indent) throws IOException { dumpThis(out); dump(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet(), getBeans(), TypeUtil.asList(getHandlers())); }
@Override public void dump(Appendable out,String indent) throws IOException { dumpThis(out); dump(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet(), getBeans(), TypeUtil.asList(getHandlers())); }
@Override public void dump(Appendable out,String indent) throws IOException { dumpThis(out); dump(out,indent, Collections.singleton(getLoginService()), Collections.singleton(getIdentityService()), Collections.singleton(getAuthenticator()), Collections.singleton(_roles), _constraintMap.entrySet(), getBeans(), TypeUtil.asList(getHandlers())); }
public static void addPathConstraint(ConstraintSecurityHandler securityHandler, String pathSpec, String role) { Objects.requireNonNull(securityHandler); Objects.requireNonNull(pathSpec); ConstraintMapping mapping = new ConstraintMapping(); Constraint constraint = new Constraint(); String[] roles = new String[]{role}; constraint.setRoles(roles); constraint.setName(securityHandler.getAuthenticator().getAuthMethod()); constraint.setAuthenticate(true); mapping.setConstraint(constraint); mapping.setPathSpec(pathSpec); securityHandler.addConstraintMapping(mapping); }
public static void addPathConstraint(ConstraintSecurityHandler securityHandler, String pathSpec, String role) { Objects.requireNonNull(securityHandler); Objects.requireNonNull(pathSpec); ConstraintMapping mapping = new ConstraintMapping(); Constraint constraint = new Constraint(); String[] roles = new String[]{role}; constraint.setRoles(roles); constraint.setName(securityHandler.getAuthenticator().getAuthMethod()); constraint.setAuthenticate(true); mapping.setConstraint(constraint); mapping.setPathSpec(pathSpec); securityHandler.addConstraintMapping(mapping); }