Class ServerConfiguration
- java.lang.Object
-
- hudson.model.Descriptor<GlobalConfiguration>
-
- jenkins.model.GlobalConfiguration
-
- com.delinea.secrets.jenkins.wrapper.cred.ServerConfiguration
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<GlobalConfiguration>
,Saveable
,OnMaster
@Extension @Symbol("secretServer") public class ServerConfiguration extends GlobalConfiguration
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_API_PATH_URI
static String
DEFAULT_ENVIRONMENT_VARIABLE_PREFIX
static String
DEFAULT_TOKEN_PATH_URI
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description ServerConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckBaseUrl(String value)
ListBoxModel
doFillCredentialIdItems(Item item)
static ServerConfiguration
get()
Calls hudson.ExtensionList#lookupSingleton(ServerConfiguration.class) to get the singleton instance of this class which is how the Jenkins documentation recommends that it be accessed.String
getApiPathUri()
String
getBaseUrl()
String
getCredentialId()
String
getEnvironmentVariablePrefix()
String
getTokenPathUri()
void
setApiPathUri(String apiPathUri)
void
setBaseUrl(String baseUrl)
void
setCredentialId(String credentialId)
void
setEnvironmentVariablePrefix(String environmentVariablePrefix)
void
setTokenPathUri(String tokenPathUri)
-
Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPage
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
-
-
-
Field Detail
-
DEFAULT_API_PATH_URI
public static final String DEFAULT_API_PATH_URI
- See Also:
- Constant Field Values
-
DEFAULT_TOKEN_PATH_URI
public static final String DEFAULT_TOKEN_PATH_URI
- See Also:
- Constant Field Values
-
DEFAULT_ENVIRONMENT_VARIABLE_PREFIX
public static final String DEFAULT_ENVIRONMENT_VARIABLE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static ServerConfiguration get()
Calls hudson.ExtensionList#lookupSingleton(ServerConfiguration.class) to get the singleton instance of this class which is how the Jenkins documentation recommends that it be accessed.- Returns:
- the singleton instance of this class
-
doCheckBaseUrl
@POST public FormValidation doCheckBaseUrl(@QueryParameter String value) throws IOException, javax.servlet.ServletException
- Throws:
IOException
javax.servlet.ServletException
-
doFillCredentialIdItems
@POST public ListBoxModel doFillCredentialIdItems(@AncestorInPath Item item)
-
getCredentialId
public String getCredentialId()
-
setCredentialId
@DataBoundSetter public void setCredentialId(String credentialId)
-
getBaseUrl
public String getBaseUrl()
-
setBaseUrl
@DataBoundSetter public void setBaseUrl(String baseUrl)
-
getEnvironmentVariablePrefix
public String getEnvironmentVariablePrefix()
-
setEnvironmentVariablePrefix
@DataBoundSetter public void setEnvironmentVariablePrefix(String environmentVariablePrefix)
-
getApiPathUri
public String getApiPathUri()
-
setApiPathUri
@DataBoundSetter public void setApiPathUri(String apiPathUri)
-
getTokenPathUri
public String getTokenPathUri()
-
setTokenPathUri
@DataBoundSetter public void setTokenPathUri(String tokenPathUri)
-
-