Results 1 to 2 of 2

Thread: PasswordAuthentication

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    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.
    Code:
    PasswordAuthentication 	requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)
    What is the prompt and scheme? Thanks.

  2. #2

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Re: PasswordAuthentication

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width