Fix javadoc for validatePublicKey