code: public void sendChallenge(UserRealm realm,
                                HttpResponse response)
          throws IOException
      {
          response.setField(HttpFields.__WwwAuthenticate,
                            "basic realm=\""+realm.getName()+'"');
          response.sendError(HttpResponse.__401_Unauthorized);
      }
docs: /* ------------------------------------------------------------