Generate new access token programmatically via API


I have developed a custom WPF application with C# in .NET Framework 4.0 for sending tweets. Currently I am having the user generate new OAuth token by going to the Twitter website. Then they have to copy and paste the new keys into a configuration file. It would be easier to just be able to generate new keys programmatically within the application when needed. Does the API support this and if not, it’s some type of security consideration? And if the API supports it, what is the call?

Thanks in advance