private String getBasicAuthHeader(String credentials) {
    return AUTH_TYPE + new Base64(0).encodeToString(credentials.getBytes());
  }
Generates a Basic Authentication header from the provided credentials.
@param credentials the credentials to encode
@return the Basic Authentication header
hbase-http/src/test/java/org/apache/hadoop/hbase/http/LdapServerTestBase.java