예제 #1
0
 @Override
 public int compareTo(X509IssuerSerial another) {
   int cissuer = issuer.toString().compareTo(another.issuer.toString());
   if (cissuer != 0) {
     return cissuer;
   }
   return this.serial.compareTo(another.serial);
 }
예제 #2
0
 public int hashCode() {
   if (hashcode == 0) {
     int result = 17;
     result = 37 * result + issuer.hashCode();
     result = 37 * result + serial.hashCode();
     hashcode = result;
   }
   return hashcode;
 }
예제 #3
0
    public boolean equals(Object o) {
      if (o == this) {
        return true;
      }

      if (!(o instanceof X509IssuerSerial)) {
        return false;
      }

      X509IssuerSerial other = (X509IssuerSerial) o;
      if (serial.equals(other.getSerial()) && issuer.equals(other.getIssuer())) {
        return true;
      }
      return false;
    }