I suppose you want an enum to store the username and password?
It depends on the logic of your program I guess. Most likely you have a general manager class (for most people this is the main window, or a download manager, ...)
You can define the enum in that class because it is the most likely place where communication connections are made.