On 3/27/07, Shawn Jin <email@example.com> wrote:
> I implemented ISVNPromptUserPassword, in which getUsername() and
> getPassword() are returning a String "abc". Passed the class to
> ISVNClientAdapter#addPasswordCallback method... No magic. My initial thought
> from your reply is these two methods will provide authenticaion info when
> the client is chanllenged, am I wrong?
You need to implement something for all the methods. Most likely the
adapter is going to call the method to prompt for the username and
password. You can fake out this method by just returning the right value
that means the user did it properly. I think this means returning true.
The client will then typically follow this up with calls to getUsername and
getPassword to retrieve the values the user might have entered. But if you
returned false from that earlier method, then it will assume the user
clicked Cancel in a dialog and thus will never call the other methods.
I am not sure which methods SVNKit is calling in the case of file://
access. You just need to make sure you are returning true for all the
prompt methods and the implemented a value in the getUsername method.
Received on Tue Mar 27 15:39:41 2007