Example #1
0
 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;
 }
Example #2
0
 public String toString() {
   return subject.toString();
 }
Example #3
0
 public int hashCode() {
   return subject.hashCode() + issuer.hashCode();
 }