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; }
private ISVNAuthenticationManager getAuthManager() { if ( getPrivateKey() != null ) { SVNSSHAuthentication[] auth = new SVNSSHAuthentication[1]; auth[0] = new SVNSSHAuthentication( getUser(), getPrivateKey().toCharArray(), getPassphrase(), -1, false ); return new BasicAuthenticationManager( auth ); } else if ( getUser() != null ) { return new BasicAuthenticationManager( getUser(), getPassword() ); } else { String configDirectory = SvnUtil.getSettings().getConfigDirectory(); return SVNWCUtil.createDefaultAuthenticationManager( configDirectory == null ? null : new File( configDirectory ), getUser(), getPassword(), SvnUtil.getSettings().isUseAuthCache() ); } } }
if ( settings.isUseAuthCache() != false ) serializer.startTag( NAMESPACE, "useAuthCache" ).text( String.valueOf( settings.isUseAuthCache() ) ).endTag( NAMESPACE, "useAuthCache" );
if ( settings.isUseAuthCache() != false ) serializer.startTag( NAMESPACE, "useAuthCache" ).text( String.valueOf( settings.isUseAuthCache() ) ).endTag( NAMESPACE, "useAuthCache" );
if ( hasAuthInfo && !SvnUtil.getSettings().isUseAuthCache() )
if ( hasAuthInfo && !SvnUtil.getSettings().isUseAuthCache() )