use of org.jetbrains.idea.svn.auth.SvnAuthenticationProvider in project intellij-community by JetBrains.
the class SvnConfiguration method getAuthenticationManager.
public SvnAuthenticationManager getAuthenticationManager(@NotNull SvnVcs svnVcs) {
if (myAuthManager == null) {
// reloaded when configuration directory changes
myAuthManager = new SvnAuthenticationManager(svnVcs, new File(getConfigurationDirectory()));
Disposer.register(svnVcs.getProject(), () -> myAuthManager = null);
getInteractiveManager(svnVcs);
// to init
myAuthManager.setAuthenticationProvider(new SvnAuthenticationProvider(svnVcs, myInteractiveProvider, myAuthManager));
myAuthManager.setRuntimeStorage(RUNTIME_AUTH_CACHE);
}
return myAuthManager;
}
Aggregations