title: javax.security.cert.X509Certificate vs java.security.cert.X509Certificate?
body: <p>Did you spot the difference in the title? (for me, it took some time)</p>
  
  <p>So I used bouncy castle with connection to <code>java.security.cert.X509Certificate</code> in order
  to create certificates. Now I'm looking for a way to create a <code>java.security.cert.X509Certificate</code> from raw bytes. I haven't any method to do this in
  <code>java.security.cert.X509Certificate</code> but there is one(the getInstance static method) in
  <code>javax.security.cert.X509Certificate</code>. </p>
  
  <p>The problem is I cannot cast a <code>javax.security.cert.X509Certificate</code> to <code>java.security.cert.X509Certificate</code>.</p>
  
  <p>Any ideas on what to do, to transform raw bytes into a <code>java.security.cert.X509Certificate</code>?</p>
  
  <p>Also, what's the differences between the one abstract class and the other class? Why does java has two of them with different functionality?</p>