It depends on your goals, you can create a default auth manager:
ISVNAuthenticationManager authManager = SVNWCUtil.createDefaultAuthenticationManager();
It uses the settings from the ~/.svn/ directory.
If you want the auth manager to request passwords / keys from the console, look at the implementation of SVNCommandEnvironment#createClientAuthenticationManager .
But you can also create the simplest auth manager by simply specifying credentials (the ~/.svn/ directory is not required for this option):
ISVNAuthenticationManager authManager = new BasicAuthenticationManager(new SVNAuthentication[] {authentication1, authentication2, ...});
therefore, you simply pass in an instance of SVNSSLAuthentication (containing the correct certificate file and passphrase) as one of the elements of the array. SVNKit will verify these authentications to success.
source share