Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the "realm" value of a SVN repository?

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?

like image 619
envynoiz Avatar asked Dec 13 '25 06:12

envynoiz


1 Answers

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.

like image 65
dimo414 Avatar answered Dec 14 '25 19:12

dimo414



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!