Search in sources :

Example 1 with SvnAuthenticationProvider

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;
}
Also used : SvnAuthenticationManager(org.jetbrains.idea.svn.auth.SvnAuthenticationManager) SvnAuthenticationProvider(org.jetbrains.idea.svn.auth.SvnAuthenticationProvider) SVNConfigFile(org.tmatesoft.svn.core.internal.wc.SVNConfigFile) File(java.io.File)

Aggregations

File (java.io.File)1 SvnAuthenticationManager (org.jetbrains.idea.svn.auth.SvnAuthenticationManager)1 SvnAuthenticationProvider (org.jetbrains.idea.svn.auth.SvnAuthenticationProvider)1 SVNConfigFile (org.tmatesoft.svn.core.internal.wc.SVNConfigFile)1