Package jenkins.security
Class RekeySecretAdminMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
jenkins.management.AsynchronousAdministrativeMonitor
jenkins.security.RekeySecretAdminMonitor
- All Implemented Interfaces:
ExtensionPoint
,ModelObject
,SearchableModelObject
,SearchItem
,org.kohsuke.stapler.StaplerProxy
@Extension
@Symbol("rekeySecret")
public class RekeySecretAdminMonitor
extends AsynchronousAdministrativeMonitor
Warns the administrator to run
SecretRewriter
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested classes/interfaces inherited from class jenkins.management.AsynchronousAdministrativeMonitor
AsynchronousAdministrativeMonitor.FixThread
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.AdministrativeMonitor
id
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
doScan
(org.kohsuke.stapler.StaplerRequest req) protected void
fix
(TaskListener listener) Run on a separate thread in the background to fix up stuff.protected File
Rewrite log file.boolean
Returns true if this monitor is activated and wants to produce a warning message.boolean
isDone()
Indicates that the re-keying has run to the completion.boolean
boolean
Returns true if this monitor is security related.void
void
Methods inherited from class jenkins.management.AsynchronousAdministrativeMonitor
getBaseDir, getLogText, isFixingActive, start
Methods inherited from class hudson.model.AdministrativeMonitor
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
RekeySecretAdminMonitor
- Throws:
IOException
-
-
Method Details
-
isActivated
public boolean isActivated()Description copied from class:AdministrativeMonitor
Returns true if this monitor is activated and wants to produce a warning message.This method is called from the HTML rendering thread, so it should run efficiently.
- Specified by:
isActivated
in classAdministrativeMonitor
-
isDone
public boolean isDone()Indicates that the re-keying has run to the completion. -
setNeeded
public void setNeeded() -
isScanOnBoot
public boolean isScanOnBoot() -
isSecurity
public boolean isSecurity()Description copied from class:AdministrativeMonitor
Returns true if this monitor is security related. This will be used to determine which icon will be used in the navigation bar.- Overrides:
isSecurity
in classAdministrativeMonitor
-
doScan
public org.kohsuke.stapler.HttpResponse doScan(org.kohsuke.stapler.StaplerRequest req) throws IOException, GeneralSecurityException - Throws:
IOException
GeneralSecurityException
-
scanOnReboot
@Initializer(fatal=false, after=PLUGINS_STARTED, before=EXTENSIONS_AUGMENTED) public void scanOnReboot() throws InterruptedException, IOException, GeneralSecurityException -
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Specified by:
getDisplayName
in classAsynchronousAdministrativeMonitor
-
getLogFile
Rewrite log file.- Overrides:
getLogFile
in classAsynchronousAdministrativeMonitor
-
fix
Description copied from class:AsynchronousAdministrativeMonitor
Run on a separate thread in the background to fix up stuff.- Specified by:
fix
in classAsynchronousAdministrativeMonitor
- Throws:
Exception
-