You need to sign in to do that
Don't have an account?

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?
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?
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