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, setUserName
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
setAuthType, setHost, setLiteralPort, setPassphrase, setPassword, setPort, setPrivateKeyFile, setStorePassphrase, setStorePassword, setUserName
getAuthType, getHost, getLiteralPort, getPassphrase, getPassword, getPort, getPrivateKeyFile, getUserName, isSkippingHostKeyVerification, isStorePassphrase, isStorePassword
public 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 RemoteSdkPropertiesPaths
public void setInterpreterPath(java.lang.String interpreterPath)
setInterpreterPath
in interface RemoteSdkProperties
public java.lang.String getHelpersPath()
getHelpersPath
in interface RemoteSdkPropertiesPaths
public void setHelpersPath(java.lang.String helpersPath)
setHelpersPath
in interface RemoteSdkProperties
public java.lang.String getDefaultHelpersName()
getDefaultHelpersName
in interface RemoteSdkProperties
public PathMappingSettings getPathMappings()
getPathMappings
in interface RemoteSdkProperties
public void setPathMappings(PathMappingSettings pathMappings)
setPathMappings
in interface RemoteSdkProperties
public boolean isHelpersVersionChecked()
isHelpersVersionChecked
in interface RemoteSdkProperties
public void setHelpersVersionChecked(boolean helpersVersionChecked)
setHelpersVersionChecked
in interface RemoteSdkProperties
public java.lang.String getFullInterpreterPath()
getFullInterpreterPath
in interface RemoteSdkCredentials
public void setSdkId(java.lang.String sdkId)
setSdkId
in interface RemoteSdkProperties
public java.lang.String getSdkId()
getSdkId
in interface RemoteSdkProperties
public boolean isInitialized()
RemoteSdkProperties
isInitialized
in interface RemoteSdkProperties
public void setInitialized(boolean initialized)
setInitialized
in interface RemoteSdkProperties
public boolean isValid()
isValid
in interface RemoteSdkProperties
public void setValid(boolean valid)
setValid
in interface RemoteSdkProperties
public boolean isRunAsRootViaSudo()
RemoteSdkProperties
isRunAsRootViaSudo
in interface RemoteSdkProperties
public void setRunAsRootViaSudo(boolean runAsRootViaSudo)
RemoteSdkProperties
setRunAsRootViaSudo
in interface RemoteSdkProperties
public static boolean isRemoteSdk(java.lang.String path)
public void load(Element element)
load
in class RemoteCredentialsHolder
public void save(Element rootElement)
RemoteCredentialsHolder
Don't use this method to serialize intermediate state of credentials because it will overwrite password and passphrase in PasswordSafe
save
in class RemoteCredentialsHolder
public boolean equals(java.lang.Object o)
equals
in class RemoteCredentialsHolder
public int hashCode()
hashCode
in class RemoteCredentialsHolder
public java.lang.String toString()
toString
in class java.lang.Object
public void copyRemoteSdkCredentialsTo(RemoteSdkCredentialsHolder to)