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 runSecretRewriter
- 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 Constructor Description RekeySecretAdminMonitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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.String
getDisplayName()
protected File
getLogFile()
Rewrite log file.boolean
isActivated()
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
isScanOnBoot()
boolean
isSecurity()
Returns true if this monitor is security related.void
scanOnReboot()
void
setNeeded()
-
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 Detail
-
RekeySecretAdminMonitor
public RekeySecretAdminMonitor() throws IOException
- Throws:
IOException
-
-
Method Detail
-
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
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceModelObject
- Specified by:
getDisplayName
in classAsynchronousAdministrativeMonitor
-
getLogFile
protected File getLogFile()
Rewrite log file.- Overrides:
getLogFile
in classAsynchronousAdministrativeMonitor
-
fix
protected void fix(TaskListener listener) throws Exception
Description copied from class:AsynchronousAdministrativeMonitor
Run on a separate thread in the background to fix up stuff.- Specified by:
fix
in classAsynchronousAdministrativeMonitor
- Throws:
Exception
-
-