public class RemoteSdkCredentialsHolder extends RemoteCredentialsHolder implements RemoteSdkCredentials
ANONYMOUS, HOST, PASSPHRASE, PASSWORD, PORT, PRIVATE_KEY_FILE, SSH_PREFIX, USE_AUTH_AGENT, USE_KEY_PAIR, USERNAME| Constructor and Description |
|---|
RemoteSdkCredentialsHolder(java.lang.String defaultHelpersDirName) |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
constructSshCredentialsSdkFullPath(RemoteSdkCredentials cred) |
void |
copyRemoteSdkCredentialsTo(RemoteSdkCredentialsHolder to) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDefaultHelpersName() |
java.lang.String |
getFullInterpreterPath() |
java.lang.String |
getHelpersPath() |
java.lang.String |
getInterpreterPath() |
static java.lang.String |
getInterpreterPathFromFullPath(java.lang.String fullPath)
Extracts interpreter path from full path generated by method getFullInterpreterPath
Returns fullPath as fallback
Based on the statement that host can't contain colon(:) symbol
|
PathMappingSettings |
getPathMappings() |
RemoteSdkPropertiesHolder |
getRemoteSdkProperties() |
java.lang.String |
getSdkId() |
int |
hashCode() |
boolean |
isHelpersVersionChecked() |
boolean |
isInitialized()
isValid() is used now
To be removed in IDEA 15
|
static boolean |
isRemoteSdk(java.lang.String path) |
boolean |
isRunAsRootViaSudo()
Note: This method will be abstract.
|
boolean |
isValid() |
void |
load(Element element) |
void |
save(Element rootElement)
Stores main part of ssh credentials in xml element and password and passphrase in PasswordSafe.
|
void |
setHelpersPath(java.lang.String helpersPath) |
void |
setHelpersVersionChecked(boolean helpersVersionChecked) |
void |
setInitialized(boolean initialized) |
void |
setInterpreterPath(java.lang.String interpreterPath) |
void |
setPathMappings(PathMappingSettings pathMappings) |
void |
setRunAsRootViaSudo(boolean runAsRootViaSudo)
Note: This method will be abstract.
|
void |
setSdkId(java.lang.String sdkId) |
void |
setValid(boolean valid) |
java.lang.String |
toString() |
copyFrom, copyRemoteCredentials, copyRemoteCredentialsTo, getAuthType, getCredentialsString, getHost, getLiteralPort, getPassphrase, getPassword, getPort, getPrivateKeyFile, getSerializedUserName, getUserName, isStorePassphrase, isStorePassword, setAuthType, setHost, setLiteralPort, setPassphrase, setPassword, setPort, setPrivateKeyFile, setStorePassphrase, setStorePassword, setUserNameclone, finalize, getClass, notify, notifyAll, wait, wait, waitsetAuthType, setHost, setLiteralPort, setPassphrase, setPassword, setPort, setPrivateKeyFile, setStorePassphrase, setStorePassword, setUserNamegetAuthType, getHost, getLiteralPort, getPassphrase, getPassword, getPort, getPrivateKeyFile, getUserName, isSkippingHostKeyVerification, isStorePassphrase, isStorePasswordpublic RemoteSdkCredentialsHolder(java.lang.String defaultHelpersDirName)
public static java.lang.String constructSshCredentialsSdkFullPath(RemoteSdkCredentials cred)
public static java.lang.String getInterpreterPathFromFullPath(java.lang.String fullPath)
public RemoteSdkPropertiesHolder getRemoteSdkProperties()
public java.lang.String getInterpreterPath()
getInterpreterPath in interface RemoteSdkPropertiesPathspublic void setInterpreterPath(java.lang.String interpreterPath)
setInterpreterPath in interface RemoteSdkPropertiespublic java.lang.String getHelpersPath()
getHelpersPath in interface RemoteSdkPropertiesPathspublic void setHelpersPath(java.lang.String helpersPath)
setHelpersPath in interface RemoteSdkPropertiespublic java.lang.String getDefaultHelpersName()
getDefaultHelpersName in interface RemoteSdkPropertiespublic PathMappingSettings getPathMappings()
getPathMappings in interface RemoteSdkPropertiespublic void setPathMappings(PathMappingSettings pathMappings)
setPathMappings in interface RemoteSdkPropertiespublic boolean isHelpersVersionChecked()
isHelpersVersionChecked in interface RemoteSdkPropertiespublic void setHelpersVersionChecked(boolean helpersVersionChecked)
setHelpersVersionChecked in interface RemoteSdkPropertiespublic java.lang.String getFullInterpreterPath()
getFullInterpreterPath in interface RemoteSdkCredentialspublic void setSdkId(java.lang.String sdkId)
setSdkId in interface RemoteSdkPropertiespublic java.lang.String getSdkId()
getSdkId in interface RemoteSdkPropertiespublic boolean isInitialized()
RemoteSdkPropertiesisInitialized in interface RemoteSdkPropertiespublic void setInitialized(boolean initialized)
setInitialized in interface RemoteSdkPropertiespublic boolean isValid()
isValid in interface RemoteSdkPropertiespublic void setValid(boolean valid)
setValid in interface RemoteSdkPropertiespublic boolean isRunAsRootViaSudo()
RemoteSdkPropertiesisRunAsRootViaSudo in interface RemoteSdkPropertiespublic void setRunAsRootViaSudo(boolean runAsRootViaSudo)
RemoteSdkPropertiessetRunAsRootViaSudo in interface RemoteSdkPropertiespublic static boolean isRemoteSdk(java.lang.String path)
public void load(Element element)
load in class RemoteCredentialsHolderpublic void save(Element rootElement)
RemoteCredentialsHolderDon't use this method to serialize intermediate state of credentials because it will overwrite password and passphrase in PasswordSafe
save in class RemoteCredentialsHolderpublic boolean equals(java.lang.Object o)
equals in class RemoteCredentialsHolderpublic int hashCode()
hashCode in class RemoteCredentialsHolderpublic java.lang.String toString()
toString in class java.lang.Objectpublic void copyRemoteSdkCredentialsTo(RemoteSdkCredentialsHolder to)