Class SshConfiguration

    • Constructor Detail

      • SshConfiguration

        @DataBoundConstructor
        public SshConfiguration()
      • SshConfiguration

        public SshConfiguration​(String customPrivateKeyCredentialsId)
    • Method Detail

      • 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
      • getCustomPrivateKeyCredentialsId

        public String getCustomPrivateKeyCredentialsId()
      • setCustomPrivateKeyCredentialsId

        @DataBoundSetter
        public void setCustomPrivateKeyCredentialsId​(String customPrivateKeyCredentialsId)
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object