super();
String[] roles = Constants.Security.BASIC_USER_ROLES;
Constraint constraint = new Constraint();
constraint.setName(Constraint.__BASIC_AUTH);
constraint.setRoles(roles);
<BUG>constraint.setAuthenticate(true);
ConstraintMapping constraintMapping = new ConstraintMapping();</BUG>
constraintMapping.setConstraint(constraint);
constraintMapping.setPathSpec("/*");
URL realmFile = getClass().getResource("/realm.properties");

super();
String[] roles = Constants.Security.BASIC_USER_ROLES;
Constraint constraint = new Constraint();
constraint.setName(Constraint.__BASIC_AUTH);
constraint.setRoles(roles);
constraint.setAuthenticate(true);
if (configuration.getBoolean(Constants.Security.SSL_ENABLED, false)) {
constraint.setDataConstraint(Constraint.DC_CONFIDENTIAL);
}
ConstraintMapping constraintMapping = new ConstraintMapping();
constraintMapping.setConstraint(constraint);
constraintMapping.setPathSpec("/*");
URL realmFile = getClass().getResource("/realm.properties");
