3

To my knowledge, when working with SVN repositories there exists a file called "svnserve.conf", which among its properties there exist the "realm" value.

If you have a local repository, I guess you can create this file and then set this value.

My question is this, if I'm using an SVN repository of a third party provider; how can I get the "realm" value using SVNKit in Java? Is this possible?

Brett Walker
  • 3,566
  • 1
  • 18
  • 36
envynoiz
  • 337
  • 3
  • 8

1 Answers1

0

I've not used SVNKit before, but it looks like the realm is provided to an instance of ISVNAuthenticationManager, which you can implement. There's also BasicAuthenticationManager which you might use as a reference.

You can use SVNRepository.setAuthenticationManager() to specify a ISVNAuthenticationManager of your choosing that captures the realm and other information you might need.

dimo414
  • 47,227
  • 18
  • 148
  • 244