title: Jetty - HashLoginService.putUser deprecated?
body: <p>Given this method:</p>
  <pre><code>private static SecurityHandler basicAuth(String username, String password) {
      HashLoginService loginService = new HashLoginService();
      loginService.putUser(username, Credential.getCredential(password), new String[]{&quot;user&quot;});
  
      Constraint constraint = new Constraint();
      constraint.setName(Constraint.__DIGEST_AUTH);
      constraint.setRoles(new String[]{&quot;user&quot;});
      constraint.setAuthenticate(true);
  
      ConstraintMapping constraintMapping = new ConstraintMapping();
      constraintMapping.setConstraint(constraint);
      constraintMapping.setPathSpec(&quot;/*&quot;);
  
      ConstraintSecurityHandler csh = new ConstraintSecurityHandler();
      csh.setAuthenticator(new BasicAuthenticator());
      csh.addConstraintMapping(constraintMapping);
      csh.setLoginService(loginService);
      return csh;
  }
  </code></pre>
  <p>It does not compile for current versions of jetty, the &quot;putUser&quot; method is deprecated from the HashLoginService class.</p>
  <p>Where or how can I find out what has superceded Jetty's HashLoginService.putUser method's functionality so the above code will compile against more current Jetty versions?</p>
  <p>Thanks!</p>