Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
1b8040a9
Commit
1b8040a9
authored
9 years ago
by
irengrig
Browse files
Options
Download
Email Patches
Plain Diff
remote interpreters, loading remote sdk connection credentials: extract common code
parent
70d9287a
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/remote/RemoteConnectionCredentialsWrapper.java
+23
-0
...m/intellij/remote/RemoteConnectionCredentialsWrapper.java
with
23 additions
and
0 deletions
+23
-0
platform/platform-impl/src/com/intellij/remote/RemoteConnectionCredentialsWrapper.java
+
23
-
0
View file @
1b8040a9
...
...
@@ -282,4 +282,27 @@ public class RemoteConnectionCredentialsWrapper {
myCredentialsTypeHolder
=
new
UserDataHolderBase
();
myCredentialsTypeHolder
.
putUserData
(
DOCKER_CREDENTIALS
,
credentials
);
}
public
void
loadCredentials
(
@NotNull
final
String
interpreterPath
,
@NotNull
final
Element
element
)
{
if
(
interpreterPath
.
startsWith
(
RemoteCredentialsHolder
.
SSH_PREFIX
))
{
RemoteCredentialsHolder
remoteSdkCred
=
new
RemoteCredentialsHolder
();
remoteSdkCred
.
load
(
element
);
setPlainSshCredentials
(
remoteSdkCred
);
}
else
if
(
interpreterPath
.
startsWith
(
VAGRANT_PREFIX
))
{
VagrantBasedCredentialsHolder
vagrantCred
=
new
VagrantBasedCredentialsHolder
();
vagrantCred
.
load
(
element
);
setVagrantConnectionType
(
vagrantCred
);
}
else
if
(
interpreterPath
.
startsWith
(
SFTP_DEPLOYMENT_PREFIX
))
{
WebDeploymentCredentialsHolder
deploymentCred
=
new
WebDeploymentCredentialsHolder
();
deploymentCred
.
load
(
element
);
setWebDeploymentCredentials
(
deploymentCred
);
}
else
if
(
interpreterPath
.
startsWith
(
DOCKER_PREFIX
))
{
DockerCredentialsHolder
dockerCred
=
new
DockerCredentialsHolder
();
dockerCred
.
load
(
element
);
setDockerDeploymentCredentials
(
dockerCred
);
}
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help