java.security.cert.X509Certificate from byte[]


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.