public boolean equals(Object obj) { if (this == obj) return true; if (obj instanceof MockX509Certificate) return subject.equals(((MockX509Certificate) obj).subject) && issuer.equals(((MockX509Certificate) obj).issuer); return false; }
public String toString() { return subject.toString(); }
public int hashCode() { return subject.hashCode() + issuer.hashCode(); }