Class TrustHostKeyAction
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.TaskAction
-
- hudson.plugins.sshslaves.verifiers.TrustHostKeyAction
-
- All Implemented Interfaces:
Action
,ModelObject
,SearchableModelObject
,SearchItem
public class TrustHostKeyAction extends TaskAction
An action that prompts a user with Computer.CONFIGURE privileges to trust a public key issued by a remote SSH host. If a key is already known for this host then the user will be prompted to replace the existing key, otherwise they will be prompted to add a new key.- Since:
- 1.13
- Author:
- Michael Clarke
-
-
Field Summary
-
Fields inherited from class hudson.model.TaskAction
log, workerThread
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
void
doSubmit(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
protected ACL
getACL()
Computer
getComputer()
String
getDisplayName()
HostKey
getExistingHostKey()
HostKey
getHostKey()
String
getIconFileName()
protected Permission
getPermission()
String
getUrlName()
boolean
isComplete()
-
Methods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLog
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
-
-
-
Method Detail
-
getHostKey
public HostKey getHostKey()
-
getExistingHostKey
public HostKey getExistingHostKey() throws IOException
- Throws:
IOException
-
getComputer
public Computer getComputer()
-
doSubmit
public void doSubmit(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
isComplete
public boolean isComplete()
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
- Specified by:
getIconFileName
in classTaskAction
-
getDisplayName
public String getDisplayName()
-
getPermission
protected Permission getPermission()
- Specified by:
getPermission
in classTaskAction
-
getACL
protected ACL getACL()
- Specified by:
getACL
in classTaskAction
-
getUrlName
public String getUrlName()
-
-