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
Modifier and TypeClassDescriptionstatic class
static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SshConfiguration.Builder
builder()
protected boolean
boolean
static com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey
Returns the SSH private key if a custom SSH Credential is selected.int
hashCode()
void
setCustomPrivateKeyCredentialsId
(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:
getDescriptor
in interfaceDescribable<SshConfiguration>
-
builder
-
getCustomPrivateKeyCredentialsId
-
setCustomPrivateKeyCredentialsId
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-