Register / Login
File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Java Micro Edition
J2ME and Bouncycastle
posted 3 years ago
I'm using bc API to create a
In my case, I have a byte array that is the certificate, but I don't find a way to create the X509Cretificate object corresponding to the byte array.
FileInputStream is = new FileInputStream(new File("Path to der")); CertificateFactory cf = CertificateFactory.getInstance("X509", "BC"); X509Certificate cert = (X509Certificate) cf.generateCertificate(is);
standard code: J2ME does not have
How can I obtain the same result by using the light bouncycastle APIs?
It is sorta covered in the
JavaRanch Style Guide
Help with conversion of String to x509Certificate
sequence wrong size for a certificate
reading certificate from smart card
as of release 5, 'enum' is a keyword...