public boolean equals(Object obj){
  if (obj == null || (!(obj instanceof CodeSigner))) {
    return false;
  }
  CodeSigner that=(CodeSigner)obj;
  if (this == that) {
    return true;
  }
  Timestamp thatTimestamp=that.getTimestamp();
  if (timestamp == null) {
    if (thatTimestamp != null) {
      return false;
    }
  }
 else {
    if (thatTimestamp == null || (!timestamp.equals(thatTimestamp))) {
      return false;
    }
  }
  return signerCertPath.equals(that.getSignerCertPath());
}

public boolean equals ( Object obj ) { if ( obj == null || ( ! ( obj instanceof CodeSigner ) ) ) { return false ; } CodeSigner that = ( CodeSigner ) obj ; if ( this == that ) { return true ; } Timestamp thatTimestamp = that . getTimestamp ( ) ; if ( timestamp == null ) { if ( thatTimestamp != null ) { return false ; } } else { if ( thatTimestamp == null || ( ! timestamp . equals ( thatTimestamp ) ) ) { return false ; } } return signerCertPath . equals ( that . getSignerCertPath ( ) ) ; }
tests for equality between the specified object and this code signer . two code signers are considered equal if their signer certificate paths are equal and if their timestamps are equal , if present in both .
