I am trying to establish the REST between two Org. I have created the Connected app and decided to go with userName, Password flow.
Now I want to utilize the connected app in the Apex class. So i need to pull all the information from the app [Consumer Key, Secret, UserName, password, endpointUrl] .
What is the best and secure way to keep all the information and retrieve in apex class.?