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