code: public static String createAuthorization(final String username,
              final String password) {
          return new String(Base64.encodeBase64((username + ":" + password)
                  .getBytes()));
      }
docs: Computes the authorization header value.
  
  @param username the user name
  @param password the user password
  @return the authorization header value as a string