Class RemoteJenkinsServer.DescriptorImpl

java.lang.Object
hudson.model.Descriptor<RemoteJenkinsServer>
org.jenkinsci.plugins.ParameterizedRemoteTrigger.RemoteJenkinsServer.DescriptorImpl
All Implemented Interfaces:
Saveable, Loadable, OnMaster
Enclosing class:
RemoteJenkinsServer

@Extension public static class RemoteJenkinsServer.DescriptorImpl extends Descriptor<RemoteJenkinsServer>
  • Constructor Details

    • DescriptorImpl

      public DescriptorImpl()
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<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

      public static List<Auth2.Auth2Descriptor> getAuth2Descriptors()
    • getDefaultAuth2Descriptor

      public static Auth2.Auth2Descriptor getDefaultAuth2Descriptor()