Class SecurityIsOffMonitor

All Implemented Interfaces:
ExtensionPoint, ModelObject, SearchableModelObject, SearchItem, org.kohsuke.stapler.StaplerProxy

@Extension @Symbol("securityIsOff") public class SecurityIsOffMonitor extends AdministrativeMonitor
Unsecured Jenkins is, well, insecure.

Call attention to the fact that Jenkins is not secured, and encourage the administrator to take an action.

Author:
Kohsuke Kawaguchi
  • Constructor Details

    • SecurityIsOffMonitor

      public SecurityIsOffMonitor()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
      Overrides:
      getDisplayName in class AdministrativeMonitor
    • 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 class AdministrativeMonitor
    • 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 class AdministrativeMonitor
    • doAct

      public void doAct(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
      Depending on whether the user said "yes" or "no", send him to the right place.
      Throws:
      IOException