docs: public static boolean checkBasicAuth(HttpServletRequest servletRequest, String username, String password) {
  
  		String basicAuth = servletRequest.getHeader("Authorization");
  		if (StringUtils.isNullOrEmptyTrimmed(basicAuth) || !basicAuth.startsWith("Basic ")) {
  			return false;
  		}
  
  		String base64Credentials = basicAuth.substring("Basic".length()).trim();
  		String credentials = new String(Base64.getDecoder().decode(base64Credentials), Charset.forName("UTF-8"));
  
  		// credentials = username:password
  		final String[] values = credentials.split(":", 2);
  		if (values.length != 2) {
  			return false;
  		}
  
  		return StringUtils.equals(values[0], username) && StringUtils.equals(values[1], password);
  	}