PasswordAuthentication
I wanted to try and add some sort of password authentication to some code I have but im not sure how the user name and password is requested. There is a PasswordAuthentication class that holds a user name as a string and a password as a character array. Now the Authenticator class has some methods that return an instance of a PasswordAuthentication class which I am asuming is initialized with the user name and password but by what means is the user name and password requested?
Here is one of the methods within the Authenticator class that returns a PasswordAuthentication instance.
PasswordAuthentication requestPasswordAuthentication(InetAddress addr,int port, String protocol, String prompt, String scheme)
What is the prompt and scheme? Thanks.

