Class BasicSSHUserPrivateKey
java.lang.Object
com.cloudbees.plugins.credentials.BaseCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.jenkins.plugins.sshcredentials.impl.BaseSSHUser
com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey
- All Implemented Interfaces:
 SSHUser,SSHUserPrivateKey,com.cloudbees.plugins.credentials.common.IdCredentials,com.cloudbees.plugins.credentials.common.StandardCredentials,com.cloudbees.plugins.credentials.common.StandardUsernameCredentials,com.cloudbees.plugins.credentials.common.UsernameCredentials,com.cloudbees.plugins.credentials.Credentials,ExtensionPoint,Describable<com.cloudbees.plugins.credentials.Credentials>,Serializable
A simple username / password for use with SSH connections.
- See Also:
 
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classLet the user enter the key directly via copy & pastestatic classDeprecated.static classA source of private keysstatic classDescriptor for aBasicSSHUserPrivateKey.PrivateKeySourcestatic classDeprecated.This approach has security vulnerability and should be migrated toBasicSSHUserPrivateKey.DirectEntryPrivateKeySourceNested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptorNested 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.StandardCredentials
com.cloudbees.plugins.credentials.common.StandardCredentials.NameProviderNested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials.NameProvider - 
Field Summary
Fields inherited from class com.cloudbees.jenkins.plugins.sshcredentials.impl.BaseSSHUser
username - 
Constructor Summary
ConstructorsConstructorDescriptionBasicSSHUserPrivateKey(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String username, BasicSSHUserPrivateKey.PrivateKeySource privateKeySource, String passphrase, String description) Constructor for stapler. - 
Method Summary
Modifier and TypeMethodDescriptionGets the passphrase for the private keys ornullif the private keys are not protected by a passphase.Returns a collection of keys to try in order for authentication.protected ObjectMethods inherited from class com.cloudbees.jenkins.plugins.sshcredentials.impl.BaseSSHUser
getUsername, isUsernameSecret, setUsernameSecretMethods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCodeMethods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScopeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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.jenkins.plugins.sshcredentials.SSHUserPrivateKey
getPrivateKeyMethods inherited from interface com.cloudbees.plugins.credentials.common.StandardCredentials
getDescriptionMethods inherited from interface com.cloudbees.plugins.credentials.common.UsernameCredentials
getUsername, isUsernameSecret 
- 
Constructor Details
- 
BasicSSHUserPrivateKey
@DataBoundConstructor public BasicSSHUserPrivateKey(com.cloudbees.plugins.credentials.CredentialsScope scope, String id, String username, BasicSSHUserPrivateKey.PrivateKeySource privateKeySource, String passphrase, String description) Constructor for stapler.- Parameters:
 scope- the credentials scopeusername- the username.privateKeySource- the private key.passphrase- the password.description- the description.
 
 - 
 - 
Method Details
- 
readResolve
- Overrides:
 readResolvein classBaseSSHUser
 - 
getPrivateKeys
Description copied from interface:SSHUserPrivateKeyReturns a collection of keys to try in order for authentication.- Specified by:
 getPrivateKeysin interfaceSSHUserPrivateKey- Returns:
 - a collection of keys to try in order for authentication.
 - See Also:
 
 - 
getPrivateKeySource
 - 
getPassphrase
Gets the passphrase for the private keys ornullif the private keys are not protected by a passphase.- Specified by:
 getPassphrasein interfaceSSHUserPrivateKey- Returns:
 - the passphrase for the private keys or 
nullif the private key are not protected by a passphase. 
 
 - 
 
BasicSSHUserPrivateKey.DirectEntryPrivateKeySource