title: Compare PublicKey object in java
body: <p>I have two PublicKey object.I want to compare both for equality or to check which is latest object using java security API or bouncy castle API.How can i achieve this?  </p>