Class RemoteJenkinsServer.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<RemoteJenkinsServer>
org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteJenkinsServer.DescriptorImpl
- Enclosing class:
- RemoteJenkinsServer
@Extension
public static class RemoteJenkinsServer.DescriptorImpl
extends Descriptor<RemoteJenkinsServer>
-
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
-
Method Summary
Modifier and TypeMethodDescriptiondoCheckAddress
(String address, boolean trustAllCertificates) Validates the given address to see that it's well-formed, and is reachable.static List<Auth2.Auth2Descriptor>
static Auth2.Auth2Descriptor
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.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, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayName
in classDescriptor<RemoteJenkinsServer>
-
makeConnectionTrustAllCertificates
public void makeConnectionTrustAllCertificates(HttpsURLConnection conn, boolean trustAllCertificates) throws NoSuchAlgorithmException, KeyManagementException 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. ATTENTION: THIS IS VERY DANGEROUS AND SHOULD ONLY BE USED IF YOU KNOW WHAT YOU DO!- Parameters:
conn
- The HttpsURLConnection you want to modify.trustAllCertificates
- A boolean, gotten from the Remote Hosts description- Throws:
NoSuchAlgorithmException
KeyManagementException
-
doCheckAddress
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckAddress(@QueryParameter String address, @QueryParameter boolean trustAllCertificates) Validates the given address to see that it's well-formed, and is reachable.- Parameters:
address
- Remote address to be validated- Returns:
- FormValidation object
-
getAuth2Descriptors
-
getDefaultAuth2Descriptor
-