@Extension
public static class KeycloakSecurityRealm.DescriptorImpl
extends hudson.model.Descriptor<hudson.security.SecurityRealm>
Constructor and Description |
---|
DescriptorImpl()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
configure(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject json) |
hudson.util.FormValidation |
doCheckKeycloakJson(String value)
Validate keycloakJson
|
String |
getDisplayName() |
String |
getHelpFile() |
String |
getKeycloakIdp()
Returns the keycloak idp hint.
|
String |
getKeycloakJson()
Returns the keycloak configuration
|
boolean |
isKeycloakRespectAccessTokenTimeout()
Returns the configuration parameter for the access token check
|
boolean |
isKeycloakValidate()
Returns the configuration parameter for the authentication check on each
request
|
hudson.security.SecurityRealm |
newInstance(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject formData) |
void |
setKeycloakIdp(String keycloakIdp)
Sets the keycloak idp hint.
|
void |
setKeycloakJson(String keycloakJson)
Sets the keycloak json configuration string
|
void |
setKeycloakRespectAccessTokenTimeout(boolean keycloakRespectAccessTokenTimeout)
Sets the configuration parameter for the access token check
|
void |
setKeycloakValidate(boolean keycloakValidate)
Sets the configuration parameter for the authentication check
|
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
public String getHelpFile()
getHelpFile
in class hudson.model.Descriptor<hudson.security.SecurityRealm>
public String getDisplayName()
getDisplayName
in class hudson.model.Descriptor<hudson.security.SecurityRealm>
public hudson.util.FormValidation doCheckKeycloakJson(@QueryParameter String value) throws javax.servlet.ServletException
value
- String the form field value to validateFormValidation
the validation resultjavax.servlet.ServletException
public boolean configure(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject json) throws hudson.model.Descriptor.FormException
configure
in class hudson.model.Descriptor<hudson.security.SecurityRealm>
hudson.model.Descriptor.FormException
public String getKeycloakJson()
String
the configuration stringpublic void setKeycloakJson(String keycloakJson)
keycloakJson
- the configurationpublic hudson.security.SecurityRealm newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData) throws hudson.model.Descriptor.FormException
newInstance
in class hudson.model.Descriptor<hudson.security.SecurityRealm>
hudson.model.Descriptor.FormException
public boolean isKeycloakValidate()
Boolean
if true, authentication is checked on each requestpublic void setKeycloakValidate(boolean keycloakValidate)
keycloakValidate
- Boolean
if true authentication is checked on each requestpublic boolean isKeycloakRespectAccessTokenTimeout()
Boolean
whether the expiration of the access token should be
checked or not before a token refreshpublic void setKeycloakRespectAccessTokenTimeout(boolean keycloakRespectAccessTokenTimeout)
keycloakRespectAccessTokenTimeout
- Boolean
whether the expiration of the access token should
be checked or not before a token refreshpublic String getKeycloakIdp()
String
the keycloak idp hintCopyright © 2016–2019. All rights reserved.