Class CredentialPair.DescriptorImpl
- java.lang.Object
-
- hudson.model.Descriptor<CredentialPair>
-
- io.jenkins.plugins.google.analyze.code.security.CredentialPair.DescriptorImpl
-
- Enclosing class:
- CredentialPair
@Extension public static class CredentialPair.DescriptorImpl extends Descriptor<CredentialPair>
-
-
Nested Class Summary
-
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
doCheckOrgID(String orgID, Item item)
Validates OrgID is non-empty and contains numeric characters only.FormValidation
doTestConnection(String orgID, Secret credential, Item item)
Validate the credential pair by contacting the validation service.String
getDisplayName()
-
Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, 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
-
doCheckOrgID
@POST public FormValidation doCheckOrgID(@QueryParameter String orgID, @AncestorInPath Item item)
Validates OrgID is non-empty and contains numeric characters only.- Parameters:
orgID
- GCP organizationId.item
- Basic configuration unit in Hudson.- Returns:
- FormValidation
-
doTestConnection
@POST public FormValidation doTestConnection(@QueryParameter("orgID") String orgID, @QueryParameter("credential") Secret credential, @AncestorInPath Item item)
Validate the credential pair by contacting the validation service.- Parameters:
orgID
- GCP organizationId.credential
- SCC credential corresponding to the orgID.- Returns:
- FormValidation
-
getDisplayName
@NonNull public String getDisplayName()
- Overrides:
getDisplayName
in classDescriptor<CredentialPair>
-
-