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
Nested Classes Modifier and Type Class Description static class
SSHAgentBuildWrapper.CredentialHolder.DescriptorImpl
Our descriptor.
-
Constructor Summary
Constructors Constructor Description CredentialHolder(String id)
Stapler's constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
Gets the id.static List<String>
toIdList(SSHAgentBuildWrapper.CredentialHolder[] credentialHolders)
Converts an array of value objects into a list of ids.-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
CredentialHolder
@DataBoundConstructor public CredentialHolder(String id)
Stapler's constructor.- Parameters:
id
- the ID.
-
-
Method Detail
-
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.
-
-