I'm trying to authenticate username, password entered by the user using svnkit 1.7.8. Currently I'm using "DefaultAuthenticationManager" in method "authenticate" to achieve this. The problem I'm facing is that even when i enter incorrect credentials the method doesn't throw any errors and continues with code execution.
My code..
private void authenticate(String user, String password) throws SVNException {
SVNRepository repository = SVNRepositoryFactory.create(SVNURL.parseURIEncoded(baseUrl));
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager(user, password);
repository.setAuthenticationManager(authManager);
}
Is this error due to usage of "DefaultAuthenticationManager" instead of "BasicAuthenticationManager" ?? Please Help
NOTE:
I'm checking out a svn directory from https url. I already have the working code for checking out a directory from SVN to local machine, Just need help with the Authentication part.