summaryrefslogtreecommitdiff
path: root/plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java')
-rw-r--r--plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java b/plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java
index 15f3a78aff5d..5304dff13e01 100644
--- a/plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java
+++ b/plugins/svn4idea/src/org/jetbrains/idea/svn/commandLine/CredentialsCallback.java
@@ -17,6 +17,7 @@ package org.jetbrains.idea.svn.commandLine;
import com.intellij.openapi.util.text.StringUtil;
import org.jetbrains.annotations.NotNull;
+import org.jetbrains.idea.svn.auth.AuthenticationService;
import org.tmatesoft.svn.core.SVNURL;
/**
@@ -26,8 +27,8 @@ public class CredentialsCallback extends AuthCallbackCase {
private static final String AUTHENTICATION_REALM = "Authentication realm:";
- CredentialsCallback(@NotNull AuthenticationCallback callback, SVNURL url) {
- super(callback, url);
+ CredentialsCallback(@NotNull AuthenticationService authenticationService, SVNURL url) {
+ super(authenticationService, url);
}
@Override
@@ -43,10 +44,10 @@ public class CredentialsCallback extends AuthCallbackCase {
: null;
final boolean isPassword = StringUtil.containsIgnoreCase(errText, "password");
if (myTried) {
- myAuthenticationCallback.clearPassiveCredentials(realm, myUrl, isPassword);
+ myAuthenticationService.clearPassiveCredentials(realm, myUrl, isPassword);
}
myTried = true;
- if (myAuthenticationCallback.authenticateFor(realm, myUrl, myAuthenticationCallback.getSpecialConfigDir() != null, isPassword)) {
+ if (myAuthenticationService.authenticateFor(realm, myUrl, isPassword)) {
return true;
}
throw new SvnBindException("Authentication canceled for realm: " + realm);