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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Our descriptor. -
Constructor Summary
-
Method Summary
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
CredentialHolder
Stapler's constructor.- Parameters:
id
- the ID.
-
-
Method Details
-
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.
-