Posted By

vss on 03/15/11


Tagged

convert Certificate X509


Versions (?)

java.security.cert.X509Certificate from byte[]


 / Published in: Java
 

  1. InputStream inStream = new ByteArrayInputStream(encodedUserPublicKey);
  2.  
  3. CertificateFactory cf = CertificateFactory.getInstance("X.509");
  4.  
  5. X509Certificate certificate = (X509Certificate) cf.generateCertificate(inStream);

Report this snippet  

You need to login to post a comment.