@Extension public class KubesphereTokenAuthGlobalConfiguration extends GlobalConfiguration
| Modifier and Type | Class and Description |
|---|---|
static class |
KubesphereTokenAuthGlobalConfiguration.CacheConfiguration |
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfExtensionPoint.LegacyInstancesAreScopedToHudsonclazz| Constructor and Description |
|---|
KubesphereTokenAuthGlobalConfiguration() |
KubesphereTokenAuthGlobalConfiguration(boolean enabled,
String server,
KubesphereTokenAuthGlobalConfiguration.CacheConfiguration cacheConfiguration)
Deprecated.
only for test
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
FormValidation |
doVerifyConnect(String server) |
static KubesphereTokenAuthGlobalConfiguration |
get() |
KubesphereTokenAuthGlobalConfiguration.CacheConfiguration |
getCacheConfiguration() |
String |
getDisplayName() |
String |
getServer() |
String |
getServerUrl() |
Map<String,KubesphereApiTokenAuthenticator.CacheEntry<KubesphereTokenReviewResponse>> |
getTokenAuthCache() |
boolean |
isEnabled() |
static String |
serverToUrl(String server) |
void |
setCacheConfiguration(KubesphereTokenAuthGlobalConfiguration.CacheConfiguration cacheConfiguration) |
void |
setEnabled(boolean enabled) |
void |
setServer(String server) |
void |
setTokenAuthCache(Map<String,KubesphereApiTokenAuthenticator.CacheEntry<KubesphereTokenReviewResponse>> tokenAuthCache) |
all, getDescriptor, getGlobalConfigPageaddHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMappublic KubesphereTokenAuthGlobalConfiguration()
@Deprecated public KubesphereTokenAuthGlobalConfiguration(boolean enabled, String server, KubesphereTokenAuthGlobalConfiguration.CacheConfiguration cacheConfiguration)
public static KubesphereTokenAuthGlobalConfiguration get()
public Map<String,KubesphereApiTokenAuthenticator.CacheEntry<KubesphereTokenReviewResponse>> getTokenAuthCache()
public void setTokenAuthCache(Map<String,KubesphereApiTokenAuthenticator.CacheEntry<KubesphereTokenReviewResponse>> tokenAuthCache)
@POST public FormValidation doVerifyConnect(@QueryParameter String server)
@Nonnull public String getDisplayName()
getDisplayName in class Descriptor<GlobalConfiguration>public boolean configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json)
configure in class GlobalConfigurationpublic boolean isEnabled()
@DataBoundSetter public void setEnabled(boolean enabled)
@DataBoundSetter public void setServer(String server)
public KubesphereTokenAuthGlobalConfiguration.CacheConfiguration getCacheConfiguration()
@DataBoundSetter public void setCacheConfiguration(KubesphereTokenAuthGlobalConfiguration.CacheConfiguration cacheConfiguration)
public String getServer()
public String getServerUrl()
Copyright © 2016–2020. All rights reserved.