code: private Creds parseAuthorizationBasic(String authHeader) {
          String userpassEncoded = authHeader.substring(6);
          String data = StringUtils.newStringUtf8(Base64.decodeBase64(userpassEncoded));
          int sepIdx = data.indexOf(':');
          if (sepIdx > 0) {
              String username = data.substring(0, sepIdx);
              String password = data.substring(sepIdx + 1);
              return new Creds(username, password);
          } else {
              return new Creds(data, null);
          }
      }
docs: Parses the Authorization request header into a username and password.
  @param authHeader the auth header