Class SshConfiguration
java.lang.Object
com.google.jenkins.plugins.computeengine.SshConfiguration
- All Implemented Interfaces:
Describable<SshConfiguration>,Serializable
Class to contain information needed to configure and access SSH Credential information if custom
private SSH key option is selected. This avoids passing in several parameters between multiple
classes and also isolates logic in accessing credentials.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SshConfiguration.Builderbuilder()protected booleanbooleanstatic com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKeyReturns the SSH private key if a custom SSH Credential is selected.inthashCode()voidsetCustomPrivateKeyCredentialsId(String customPrivateKeyCredentialsId) toString()
-
Constructor Details
-
SshConfiguration
@DataBoundConstructor public SshConfiguration() -
SshConfiguration
-
-
Method Details
-
getCustomPrivateKeyCredentials
public static com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey getCustomPrivateKeyCredentials(String id) Returns the SSH private key if a custom SSH Credential is selected.- Parameters:
id- private key id from selected credential- Returns:
- SSH private key in plain text to use for SSH
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<SshConfiguration>
-
builder
-
getCustomPrivateKeyCredentialsId
-
setCustomPrivateKeyCredentialsId
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-