@Override
  public boolean equals(Object other) {
    if (this == other) {
      return true;
    }
    if (!(other instanceof Credential)) {
      return false;
    }
    Credential otherCredential = (Credential) other;
    return username.equals(otherCredential.username) && password.equals(otherCredential.password);
  }
Check whether this credential is an OAuth 2.0 refresh token.

@return true if this credential is an OAuth 2.0 refresh token.
jib-core/src/main/java/com/google/cloud/tools/jib/api/Credential.java