/** * @deprecated Use {@link #createDefaultAuthenticationManager(File, String, char[], boolean)} method. */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password, boolean storeAuth) { return createDefaultAuthenticationManager(configDir, userName, password, null, null, storeAuth); }
/** * Gets operation's authentication manager. * If not set, creates default authentication manager. * * @return authentication manager */ public ISVNAuthenticationManager getAuthenticationManager() { if (authenticationManager == null) { authenticationManager = SVNWCUtil.createDefaultAuthenticationManager(); } return authenticationManager; }
/** * @deprecated Use {@link #createDefaultAuthenticationManager(String, char[])} method. */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(String userName, String password) { return createDefaultAuthenticationManager(null, userName, password); }
/** * Creates a default authentication manager that uses the <i>servers</i> * configuration and authentication storage located in the provided * directory. The authentication storage is enabled. * * @param configDir * a new location of the run-time configuration area * @return a default implementation of the credentials and servers * configuration driver interface */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir) { return createDefaultAuthenticationManager(configDir, null, (char[]) null, true); }
/** * Creates a default authentication manager that uses the <i>servers</i> * configuration and authentication storage located in the provided * directory. The authentication storage is enabled. * * @param configDir * a new location of the run-time configuration area * @return a default implementation of the credentials and servers * configuration driver interface */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir) { return createDefaultAuthenticationManager(configDir, null, null, true); }
/** * Creates a default authentication manager that uses the <i>servers</i> * configuration and authentication storage located in the provided * directory. The authentication storage is enabled. * * @param configDir a new location of the run-time configuration * area * @return a default implementation of the credentials * and servers configuration driver interface */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir) { return createDefaultAuthenticationManager(configDir, null, null, true); }
/** * @deprecated Use {@link #createDefaultAuthenticationManager(File, String, char[], File, char[], boolean)} method. */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password, File privateKey, String passphrase, boolean storeAuth) { final char[] passwordValue = password != null ? password.toCharArray() : null; final char[] passphraseValue = passphrase != null ? passphrase.toCharArray() : null; return createDefaultAuthenticationManager(configDir, userName, passwordValue, privateKey, passphraseValue, storeAuth); }
protected SVNBasicClient(final ISVNAuthenticationManager authManager, ISVNOptions options) { this(new DefaultSVNRepositoryPool(authManager == null ? SVNWCUtil.createDefaultAuthenticationManager() : authManager, options, true, DefaultSVNRepositoryPool.RUNTIME_POOL), options); }
protected SVNAdminBasicClient(final ISVNAuthenticationManager authManager, ISVNOptions options) { this(new DefaultSVNRepositoryPool(authManager == null ? SVNWCUtil .createDefaultAuthenticationManager() : authManager, options, 0, false), options); }
public static ISVNAuthenticationManager authenticationManager(String username, String password) { return SVNWCUtil.createDefaultAuthenticationManager( SVNWCUtil.getDefaultConfigurationDirectory(), username, password, false /* do not store credentials, not even when configured */); } }
public static ISVNAuthenticationManager authenticationManager(String username, String password) { return SVNWCUtil.createDefaultAuthenticationManager( SVNWCUtil.getDefaultConfigurationDirectory(), username, password, false /* do not store credentials, not even when configured */); } }
public void updateAuthentication(String login, String password) { authManager = SVNWCUtil.createDefaultAuthenticationManager(login, password); manager = SVNClientManager.newInstance(svnOption, authManager); }
/** * @deprecated Use {@link #createDefaultAuthenticationManager(File, String, char[])} method. */ public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir, String userName, String password) { DefaultSVNOptions options = createDefaultOptions(configDir, true); boolean store = options.isAuthStorageEnabled(); return createDefaultAuthenticationManager(configDir, userName, password, store); }
protected SVNAdminClient getAdminClient() { if (mySVNAdminClient == null) { mySVNAdminClient = new SVNAdminClient(SVNWCUtil.createDefaultAuthenticationManager(), SVNWCUtil.createDefaultOptions(true)); } return mySVNAdminClient; }
protected SVNAdminClient getAdminClient() { if (mySVNAdminClient == null) { mySVNAdminClient = new SVNAdminClient(SVNWCUtil.createDefaultAuthenticationManager(), SVNWCUtil.createDefaultOptions(true)); } return mySVNAdminClient; }
protected SVNAdminClient getAdminClient() { if (svnAdminClient == null) { svnAdminClient = new SVNAdminClient(SVNWCUtil.createDefaultAuthenticationManager(), SVNWCUtil.createDefaultOptions(true)); } return svnAdminClient; }
private ISVNAuthenticationManager createAuthenticationManager() { ISVNAuthenticationProvider sap = getSvnAuthenticationProvider(build); ISVNAuthenticationManager sam = SVNWCUtil.createDefaultAuthenticationManager(); sam.setAuthenticationProvider(sap); return sam; }
protected SVNAdminClient getAdminClient() { if (mySVNAdminClient == null) { mySVNAdminClient = new SVNAdminClient(SVNWCUtil.createDefaultAuthenticationManager(), SVNWCUtil.createDefaultOptions(true)); } return mySVNAdminClient; }
private void updateClientManager() { File configDir = myConfigDir == null ? null : new File(myConfigDir); myOptions = SVNWCUtil.createDefaultOptions(configDir, true); myAuthenticationManager = SVNWCUtil.createDefaultAuthenticationManager(configDir, myUserName, myPassword, myOptions.isAuthStorageEnabled()); if (myPrompt != null) { myAuthenticationManager.setAuthenticationProvider(new JavaHLAuthenticationProvider(myPrompt)); } else { myAuthenticationManager.setAuthenticationProvider(null); } myAuthenticationManager.setRuntimeStorage(ourAuthStorage); myClientManager = null; }
public SVNClientManager getClientManager() { ISVNOptions options = SVNWCUtil.createDefaultOptions( true ); String configDirectory = SvnUtil.getSettings().getConfigDirectory(); ISVNAuthenticationManager isvnAuthenticationManager = SVNWCUtil.createDefaultAuthenticationManager( configDirectory == null ? null : new File( configDirectory ), getUser(), getPassword(), SvnUtil.getSettings().isUseAuthCache() ); SVNClientManager svnClientManager = SVNClientManager.newInstance( options, isvnAuthenticationManager ); return svnClientManager; }