com.cloudbees.jenkins.plugins.sshcredentials.impl
Class BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource

java.lang.Object
  extended by hudson.model.AbstractDescribableImpl<BasicSSHUserPrivateKey.PrivateKeySource>
      extended by com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey.PrivateKeySource
          extended by com.cloudbees.jenkins.plugins.sshcredentials.impl.BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource
All Implemented Interfaces:
hudson.model.Describable<BasicSSHUserPrivateKey.PrivateKeySource>, java.io.Serializable
Enclosing class:
BasicSSHUserPrivateKey

public static class BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource
extends BasicSSHUserPrivateKey.PrivateKeySource

Let the user reference a file on the disk.

See Also:
Serialized Form

Nested Class Summary
static class BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource.DescriptorImpl
          
 
Constructor Summary
BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource(java.lang.String privateKeyFile)
           
 
Method Summary
 java.lang.String getPrivateKey()
          Gets the private key from the source
 java.lang.String getPrivateKeyFile()
          Returns the private key file name.
 
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource

@DataBoundConstructor
public BasicSSHUserPrivateKey.FileOnMasterPrivateKeySource(java.lang.String privateKeyFile)
Method Detail

getPrivateKey

@NonNull
public java.lang.String getPrivateKey()
Gets the private key from the source

Specified by:
getPrivateKey in class BasicSSHUserPrivateKey.PrivateKeySource

getPrivateKeyFile

public java.lang.String getPrivateKeyFile()
Returns the private key file name.

Returns:
the private key file name.


Copyright © 2004-2013. All Rights Reserved.