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.LegacyInstancesAreScopedToHudson
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
Nested 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 ornull
if the private keys are not protected by a passphase.default String
Deprecated.Returns a collection of keys to try in order for authentication.Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
Methods inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
getId
Methods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescription
Methods 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 ornull
if the private keys are not protected by a passphase.- Returns:
- the passphrase for the private keys or
null
if 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()