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.EnhancedCheckMethodNested 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 -
Method Summary
Modifier and TypeMethodDescriptiondoCheckCredentialId(Item item, String value) Validates the Credential ID input by the user.doCheckPasswordSlugName(Item item, String value) doCheckSecretId(Item item, String value) Validates the Secret ID input by the user.doCheckUsernameSlug(Item item, String value) doFillCredentialIdItems(Item owner) Populates the list of available Credential IDs for the dropdown in the Jenkins UI.doTestConnection(Item owner, String usernameSlug, String passwordSlugName, String vaultUrl, String credentialId, String secretId, String proxyHost, String proxyPort, String proxyUsername, Secret proxyPassword, String noProxyHosts, boolean useProxy) Tests the connection to the Secret Server using the provided parameters.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, unwrapContextMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, configure, configure, configure, doHelp, 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, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<com.cloudbees.plugins.credentials.Credentials>
-
doFillCredentialIdItems
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:
IOExceptionjavax.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:
IOExceptionjavax.servlet.ServletException
-
doCheckUsernameSlug
@POST public FormValidation doCheckUsernameSlug(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
doCheckPasswordSlugName
@POST public FormValidation doCheckPasswordSlugName(@AncestorInPath Item item, @QueryParameter String value) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-
doTestConnection
@POST public FormValidation doTestConnection(@AncestorInPath Item owner, @QueryParameter("usernameSlug") String usernameSlug, @QueryParameter("passwordSlugName") String passwordSlugName, @QueryParameter("vaultUrl") String vaultUrl, @QueryParameter("credentialId") String credentialId, @QueryParameter("secretId") String secretId, @QueryParameter("proxyHost") String proxyHost, @QueryParameter("proxyPort") String proxyPort, @QueryParameter("proxyUsername") String proxyUsername, @QueryParameter("proxyPassword") Secret proxyPassword, @QueryParameter("noProxyHosts") String noProxyHosts, @QueryParameter("useProxy") boolean useProxy) 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.
-