@Extension public static class RemoteJenkinsServer.DescriptorImpl extends Descriptor<RemoteJenkinsServer>
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self
clazz
Constructor and Description |
---|
DescriptorImpl() |
Modifier and Type | Method and Description |
---|---|
FormValidation |
doCheckAddress(String address,
boolean trustAllCertificates)
Validates the given address to see that it's well-formed, and is reachable.
|
static List<Auth2.Auth2Descriptor> |
getAuth2Descriptors() |
static Auth2.Auth2Descriptor |
getDefaultAuth2Descriptor() |
String |
getDisplayName() |
void |
makeConnectionTrustAllCertificates(HttpsURLConnection conn,
boolean trustAllCertificates)
Sets the TrustManager to be a "NaiveTrustManager", allowing us to ignore untrusted certificates
Will set the connection to null, if a key management error occurred.
|
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
public String getDisplayName()
getDisplayName
in class Descriptor<RemoteJenkinsServer>
public void makeConnectionTrustAllCertificates(HttpsURLConnection conn, boolean trustAllCertificates) throws NoSuchAlgorithmException, KeyManagementException
conn
- The HttpsURLConnection you want to modify.trustAllCertificates
- A boolean, gotten from the Remote Hosts descriptionNoSuchAlgorithmException
KeyManagementException
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckAddress(@QueryParameter String address, @QueryParameter boolean trustAllCertificates)
address
- Remote address to be validatedpublic static List<Auth2.Auth2Descriptor> getAuth2Descriptors()
public static Auth2.Auth2Descriptor getDefaultAuth2Descriptor()
Copyright © 2016–2023. All rights reserved.