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
public interface SSHUserPrivateKey extends SSHUser
Details of a SSH user with a private key.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Secret
getPassphrase()
Gets the passphrase for the private keys ornull
if the private keys are not protected by a passphase.default String
getPrivateKey()
Deprecated.usegetPrivateKeys()
List<String>
getPrivateKeys()
Returns a collection of keys to try in order for authentication.-
Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
-
-
-
-
Method Detail
-
getPrivateKey
@Deprecated @NonNull default String 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
@CheckForNull Secret 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
@NonNull List<String> 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:
SSHAuthenticator.getPrivateKeys(com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey)
-
-