Package jenkins.security.apitoken
Class ApiTokenPropertyDisabledDefaultAdministrativeMonitor
java.lang.Object
hudson.model.AbstractModelObject
hudson.model.AdministrativeMonitor
jenkins.security.apitoken.ApiTokenPropertyDisabledDefaultAdministrativeMonitor
- All Implemented Interfaces:
ExtensionPoint
,ModelObject
,SearchableModelObject
,SearchItem
,org.kohsuke.stapler.StaplerProxy
@Extension
@Symbol("apiTokenLegacyAutoGeneration")
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public class ApiTokenPropertyDisabledDefaultAdministrativeMonitor
extends AdministrativeMonitor
Monitor that the API Token are not generated by default without the user interaction.
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
Fields inherited from class hudson.model.AdministrativeMonitor
id
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.kohsuke.stapler.HttpResponse
boolean
Returns true if this monitor is activated and wants to produce a warning message.boolean
Returns true if this monitor is security related.Methods inherited from class hudson.model.AdministrativeMonitor
all, checkRequiredPermission, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, hasPermissionToDisplay, hasRequiredPermission, isEnabled
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Constructor Details
-
ApiTokenPropertyDisabledDefaultAdministrativeMonitor
public ApiTokenPropertyDisabledDefaultAdministrativeMonitor()
-
-
Method Details
-
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classAdministrativeMonitor
-
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
-
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
-
doAct
- Throws:
IOException
-