Interface SSHUserPrivateKey
- All Superinterfaces:
com.cloudbees.plugins.credentials.Credentials,Describable<com.cloudbees.plugins.credentials.Credentials>,ExtensionPoint,com.cloudbees.plugins.credentials.common.IdCredentials,Serializable,SSHUser,com.cloudbees.plugins.credentials.common.StandardCredentials,com.cloudbees.plugins.credentials.common.StandardUsernameCredentials,com.cloudbees.plugins.credentials.common.UsernameCredentials
- All Known Implementing Classes:
BasicSSHUserPrivateKey
Details of a SSH user with a private key.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.HelpersNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.NameProvider -
Method Summary
Modifier and TypeMethodDescriptionGets the passphrase for the private keys ornullif the private keys are not protected by a passphase.default StringDeprecated.Returns a collection of keys to try in order for authentication.Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScopeMethods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getIdMethods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescriptionMethods inherited from interface com.cloudbees.plugins.credentials.common.UsernameCredentials
getUsername, isUsernameSecret
-
Method Details
-
getPrivateKey
Deprecated.usegetPrivateKeys()Returns the first private key. This should be in OpenSSH format.- Returns:
- This is the actual content of the first private key and not the path to the private key.
-
getPassphrase
Gets the passphrase for the private keys ornullif the private keys are not protected by a passphase.- Returns:
- the passphrase for the private keys or
nullif the private key are not protected by a passphase.
-
getPrivateKeys
Returns a collection of keys to try in order for authentication.- Returns:
- a collection of keys to try in order for authentication.
- Since:
- 0.5
- See Also:
-
getPrivateKeys()