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.HttpResponsedoScan(org.kohsuke.stapler.StaplerRequest req)protected voidfix(TaskListener listener)Run on a separate thread in the background to fix up stuff.StringgetDisplayName()protected FilegetLogFile()Rewrite log file.booleanisActivated()Returns true if this monitor is activated and wants to produce a warning message.booleanisDone()Indicates that the re-keying has run to the completion.booleanisScanOnBoot()booleanisSecurity()Returns true if this monitor is security related.voidscanOnReboot()voidsetNeeded()-
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:AdministrativeMonitorReturns 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:
isActivatedin 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:AdministrativeMonitorReturns true if this monitor is security related. This will be used to determine which icon will be used in the navigation bar.- Overrides:
isSecurityin classAdministrativeMonitor
-
doScan
public org.kohsuke.stapler.HttpResponse doScan(org.kohsuke.stapler.StaplerRequest req) throws IOException, GeneralSecurityException- Throws:
IOExceptionGeneralSecurityException
-
scanOnReboot
@Initializer(fatal=false, after=PLUGINS_STARTED, before=EXTENSIONS_AUGMENTED) public void scanOnReboot() throws InterruptedException, IOException, GeneralSecurityException
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceModelObject- Specified by:
getDisplayNamein classAsynchronousAdministrativeMonitor
-
getLogFile
protected File getLogFile()
Rewrite log file.- Overrides:
getLogFilein classAsynchronousAdministrativeMonitor
-
fix
protected void fix(TaskListener listener) throws Exception
Description copied from class:AsynchronousAdministrativeMonitorRun on a separate thread in the background to fix up stuff.- Specified by:
fixin classAsynchronousAdministrativeMonitor- Throws:
Exception
-
-