Add issuer to the unique identifier for an Entry

This commit is contained in:
Jakob Nixdorf 2021-03-04 21:35:39 +01:00
parent 095212d09d
commit cb53c80cd7
No known key found for this signature in database
GPG key ID: BE99BF86574A7DBC

View file

@ -506,18 +506,19 @@ public class Entry {
if (this == o) return true; if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false; if (o == null || getClass() != o.getClass()) return false;
Entry entry = (Entry) o; Entry entry = (Entry) o;
return period == entry.period && return type == entry.type &&
digits == entry.digits && period == entry.period &&
type == entry.type &&
counter == entry.counter && counter == entry.counter &&
digits == entry.digits &&
algorithm == entry.algorithm && algorithm == entry.algorithm &&
Arrays.equals(secret, entry.secret) && Arrays.equals(secret, entry.secret) &&
Objects.equals(label, entry.label); Objects.equals(label, entry.label) &&
Objects.equals(issuer, entry.issuer);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(type, period, counter, digits, algorithm, secret, label); return Objects.hash(type, period, counter, digits, algorithm, secret, label, issuer);
} }
public void setColor(int color) { public void setColor(int color) {