code: public Tuple2<String, String> extractBasicAuth(String value) {
  		if (value != null) {
  			String[] parts = value.split("\\s+");
  			if (parts.length == 2 && "basic".equals(parts[0].toLowerCase())) {
  				String credentials = new String(base64.decodeNoGzip(parts[1]));
  				int colon = credentials.indexOf(':'); // not using credentials.split() as password can contain ":"
  				if (colon > -1) {
  					return new Tuple2<String, String>(credentials.substring(0, colon), credentials.substring(colon + 1));
  				}
  			}
  		}
  		return null;
  	}
docs: /* basic auth