Package io.jenkins.plugins.ompass
Class OmpassGlobalConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.ompass.OmpassGlobalConfig
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
Global configuration for the OMPASS 2FA plugin.
Stores the OMPASS server URL, client credentials, and 2FA enabled state.
Shown on the Manage Jenkins > Security page.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) doCheckClientId(String value) doCheckOmpassServerUrl(String value) doCheckSecretKey(String value) doTestConnection(String ompassServerUrl, String clientId, String secretKey) static OmpassGlobalConfigget()Returns the singleton instance of this configuration.booleanvoidsetClientId(String clientId) voidsetEnableOmpass2fa(boolean enableOmpass2fa) voidsetLanguage(String language) voidsetOmpassServerUrl(String ompassServerUrl) voidsetSecretKey(Secret secretKey) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
OmpassGlobalConfig
@DataBoundConstructor public OmpassGlobalConfig()
-
-
Method Details
-
get
Returns the singleton instance of this configuration.- Returns:
- the global OMPASS configuration object, or null if not available
-
getCategory
- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>
-
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
getOmpassServerUrl
-
getClientId
-
getSecretKey
-
isEnableOmpass2fa
public boolean isEnableOmpass2fa() -
getLanguage
-
setOmpassServerUrl
-
setClientId
-
setSecretKey
-
setEnableOmpass2fa
@DataBoundSetter public void setEnableOmpass2fa(boolean enableOmpass2fa) -
setLanguage
-
doFillLanguageItems
-
doCheckOmpassServerUrl
-
doCheckClientId
-
doCheckSecretKey
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter String ompassServerUrl, @QueryParameter String clientId, @QueryParameter String secretKey)
-