Add issuer to the unique identifier for an Entry
This commit is contained in:
parent
095212d09d
commit
cb53c80cd7
1 changed files with 6 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue