Class SSHAgentBuildWrapper.CredentialHolder

java.lang.Object
hudson.model.AbstractDescribableImpl<SSHAgentBuildWrapper.CredentialHolder>
com.cloudbees.jenkins.plugins.sshagent.SSHAgentBuildWrapper.CredentialHolder
All Implemented Interfaces:
Describable<SSHAgentBuildWrapper.CredentialHolder>
Enclosing class:
SSHAgentBuildWrapper

public static class SSHAgentBuildWrapper.CredentialHolder extends AbstractDescribableImpl<SSHAgentBuildWrapper.CredentialHolder>
A value object to make it possible to pass back multiple credentials via the UI.
Since:
1.5
  • Constructor Details

    • CredentialHolder

      @DataBoundConstructor public CredentialHolder(String id)
      Stapler's constructor.
      Parameters:
      id - the ID.
  • Method Details

    • getId

      public String getId()
      Gets the id.
      Returns:
      the id.
    • toIdList

      @NonNull public static List<String> toIdList(@Nullable SSHAgentBuildWrapper.CredentialHolder[] credentialHolders)
      Converts an array of value objects into a list of ids.
      Parameters:
      credentialHolders - the array of value objects.
      Returns:
      the possibly empty but never null list of ids.