Class EphemeralSSHUserPrivateKey
java.lang.Object
io.jenkins.plugins.ephemeral_credentials.EphemeralCredentialSpec
io.jenkins.plugins.ephemeral_credentials.EphemeralSSHUserPrivateKey
- All Implemented Interfaces:
Serializable
SSH Username with private key. Unlike the other credential types, this one
pulls in a plugin (SSH
Credentials) beyond what this plugin otherwise needs - so it's declared
as an optional Maven/HPI dependency: installations that never use
ephemeralSSHUserPrivateKey don't need it installed at all.
The constructor deliberately touches BasicSSHUserPrivateKey (a
class literal is enough to force resolution) so that a missing plugin
fails immediately, with a clear message, at the point the pipeline author
declares this spec - not deep inside materialize(java.util.Map<java.lang.String, java.lang.Object>) after a human
has already answered an input prompt for nothing.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParameters to pass to theinputstep when this credential is missing.com.cloudbees.plugins.credentials.Credentialsmaterialize(Map<String, Object> answers) Builds the credential from theinputstep's answers, keyed by the parameter names returned fromEphemeralCredentialSpec.inputParameters().Methods inherited from class io.jenkins.plugins.ephemeral_credentials.EphemeralCredentialSpec
getDescription, getId
-
Constructor Details
-
EphemeralSSHUserPrivateKey
-
-
Method Details
-
inputParameters
Description copied from class:EphemeralCredentialSpecParameters to pass to theinputstep when this credential is missing.input's ownmessageis the spec'sEphemeralCredentialSpec.getDescription()(falling back to a generic default), set by the caller - these are just the value-collecting fields.- Specified by:
inputParametersin classEphemeralCredentialSpec
-
materialize
Description copied from class:EphemeralCredentialSpecBuilds the credential from theinputstep's answers, keyed by the parameter names returned fromEphemeralCredentialSpec.inputParameters().- Specified by:
materializein classEphemeralCredentialSpec
-