function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Deepika S 33Deepika S 33 

X509EncodedKeySpec - REST API Integration

I have to convert the java class into apex  for API Integration.
I stuck with to create a public key. The Public key file is in PEM File format. By using RSA I have to convert to apex class. 

What is the equivalent code for X509EncodedKeySpec & keyFactory Java method in apex class to create a public key using RSA Algorithm? 
SwethaSwetha (Salesforce Developers) 
HI Deepika,
I've come across related posts that might help
https://salesforce.stackexchange.com/questions/166593/private-and-public-key-in-salesforce-from-apex
https://gist.github.com/karmats/4270441be5a34fff7062
https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_classes_restful_crypto.htm
https://salesforce.stackexchange.com/questions/264609/create-self-signed-x509-certificate

Thanks