title: How to validate a public and private key pair in Java
body: <p>Is there a way to validate in java if the given private key, say certain *.key file matches with the certain public key, to a certain .pub file using RSA algorithm?</p>