Class SecretServerCredentials.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<com.cloudbees.plugins.credentials.Credentials>
-
- com.cloudbees.plugins.credentials.CredentialsDescriptor
-
- com.delinea.secrets.jenkins.global.cred.SecretServerCredentials.DescriptorImpl
-
- Enclosing class:
- SecretServerCredentials
@Extension public static class SecretServerCredentials.DescriptorImpl extends com.cloudbees.plugins.credentials.CredentialsDescriptor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
com.cloudbees.plugins.credentials.CredentialsDescriptor.EnhancedCheckMethod
-
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
-
-
Field Summary
-
Fields inherited from class hudson.model.Descriptor
clazz
-
-
Constructor Summary
Constructors Constructor Description DescriptorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FormValidation
doCheckCredentialId(Item item, String value)
Validates the Credential ID input by the user.FormValidation
doCheckSecretId(Item item, String value)
Validates the Secret ID input by the user.ListBoxModel
doFillCredentialIdItems(Item owner)
Populates the list of available Credential IDs for the dropdown in the Jenkins UI.FormValidation
doTestConnection(Item owner, String vaultUrl, String credentialId, String secretId)
Tests the connection to the Secret Server using the provided parameters.String
getDisplayName()
-
Methods inherited from class com.cloudbees.plugins.credentials.CredentialsDescriptor
calcAutoCompleteSettings, calcFillSettings, doFillScopeItems, findContextInPath, findContextInPath, getCheckMethod, getCredentialsPage, getIconClassName, isApplicable, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, isScopeRelevant, lookupContext, unwrapContext
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, 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
-
-
-
-
Method Detail
-
getDisplayName
public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<com.cloudbees.plugins.credentials.Credentials>
-
doFillCredentialIdItems
@POST public ListBoxModel doFillCredentialIdItems(@AncestorInPath Item owner)
Populates the list of available Credential IDs for the dropdown in the Jenkins UI.- Parameters:
owner
- - The Jenkins item context.- Returns:
- A ListBoxModel containing the available Credential IDs.
-
doCheckCredentialId
@POST public FormValidation doCheckCredentialId(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
Validates the Credential ID input by the user.- Throws:
IOException
javax.servlet.ServletException
-
doCheckSecretId
@POST public FormValidation doCheckSecretId(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException
Validates the Secret ID input by the user.- Throws:
IOException
javax.servlet.ServletException
-
doTestConnection
@POST public FormValidation doTestConnection(@AncestorInPath Item owner, @QueryParameter("vaultUrl") String vaultUrl, @QueryParameter("credentialId") String credentialId, @QueryParameter("secretId") String secretId)
Tests the connection to the Secret Server using the provided parameters.- Parameters:
owner
- - The Jenkins item context.vaultUrl
- - The URL of the Secret Server.credentialId
- - The ID of the credentials stored in Jenkins.secretId
- - The ID of the secret stored in theSecret Server.- Returns:
- FormValidation indicating whether the connection was successful or not.
-
-