title: Where can I find the Base64Encoder class?
body: <p>Hi I saw an example on StackOverflow which had this code:</p>
  
  <pre><code>String encoding = Base64Encoder.encode ("test1:test1");
  HttpPost httppost = new HttpPost("http://host:post/test/login");
  httppost.setHeader("Authorization", "Basic " + encoding);
  
  System.out.println("executing request " + httppost.getRequestLine());
  HttpResponse response = httpclient.execute(httppost);
  HttpEntity entity = response.getEntity();
  </code></pre>
  
  <p>I have a task similar to this. I tried to use the same code but I couldn't find the Base64Encoder class anywhere. Im using httpclient-4.1.2.jar and httpcore-4.1.2.jar. Can someone help me with this?</p>