Class TrustHostKeyAction
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.TaskAction
hudson.plugins.sshslaves.verifiers.TrustHostKeyAction
- All Implemented Interfaces:
Action,ModelObject,SearchableModelObject,SearchItem
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
Modifier and TypeMethodDescriptionvoiddoIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) voiddoSubmit(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) protected ACLgetACL()protected PermissionbooleanMethods inherited from class hudson.model.TaskAction
doClearError, doProgressiveHtml, doProgressiveLog, getLog, getSearchUrl, getWorkerThread, obtainLogMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
Method Details
-
getHostKey
-
getExistingHostKey
- Throws:
IOException
-
getComputer
-
doSubmit
public void doSubmit(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
doIndex
public void doIndex(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException - Throws:
IOExceptionjakarta.servlet.ServletException
-
isComplete
public boolean isComplete() -
getIconFileName
- Specified by:
getIconFileNamein interfaceAction- Specified by:
getIconFileNamein classTaskAction
-
getDisplayName
-
getPermission
- Specified by:
getPermissionin classTaskAction
-
getACL
- Specified by:
getACLin classTaskAction
-
getUrlName
-