How to read the RSA key from PEM file and decode it to byte array
I want to use the RSA private key in my project using Java. I do have the key in file using PEM format. I want to use this private key into my project to decrypt the messages which are encrypted using my public key.
What is the method/standard classes I can use to read and decode the private key from the PEM file? I don't want to use the openssl or any other libraries/classes to do this. An example or sample code will be really helpful.