docs: public Credentials getCredentials() {
          String username = getUsername();
          char[] password = getPassword();
          if (username != null) {
              return new SimpleCredentials(username, password);
          }
          return null;
      }