PDA

Click to See Complete Forum and Search --> : PasswordAuthentication


Dillinger4
Sep 8th, 2005, 10:42 AM
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.

Dillinger4
Sep 24th, 2005, 04:57 PM
I figured out how to use the Authenticator and PasswordAuthentication classes. Still don't know what the prompt and scheme is but I will figure that out another time. :lol: