Class NegotiateSSO

    • Constructor Detail

      • NegotiateSSO

        public NegotiateSSO()
        Initializes and starts the filter, if enabled.
    • Method Detail

      • getInstance

        public static NegotiateSSO getInstance()
        Fetches the singleton instance of this plugin.
        Returns:
        the instance.
      • start

        public void start()
                   throws javax.servlet.ServletException
        Starts the plugin. Loads previous configuration if such exists.
        Throws:
        javax.servlet.ServletException - if the Waffle NTLM/Kerberos filter cannot be added to Jenkins.
      • configure

        public boolean configure​(org.kohsuke.stapler.StaplerRequest req,
                                 net.sf.json.JSONObject formData)
                          throws Descriptor.FormException
        When submit is pressed on the global config page and any settings for this plugin are changed, this method is called. It updates all the fields, restarts or stops the filter depending on configuration and saves the configuration to disk.
        Overrides:
        configure in class GlobalConfiguration
        Parameters:
        req - the Stapler Request to serve.
        formData - the JSON data containing the new configuration.
        Returns:
        true if configuration successful; false otherwise
        Throws:
        Descriptor.FormException - if any data in the form is wrong.
      • getEnabled

        public boolean getEnabled()
        Used by groovy for data-binding.
        Returns:
        whether the Filter is currently enabled or not.
      • getRoleFormat

        public String getRoleFormat()
        Used by groovy for data-binding.
        Returns:
        the current role format
      • setRoleFormat

        public void setRoleFormat​(String format)
        Used by groovy for data-binding.
        Parameters:
        format - set the role format
      • getPrincipalFormat

        public String getPrincipalFormat()
        Used by groovy for data-binding.
        Returns:
        the current principal format
      • setPrincipalFormat

        public void setPrincipalFormat​(String format)
        Used by groovy for data-binding.
        Parameters:
        format - set the principal format
      • getProtocols

        public String getProtocols()
        Used by groovy for data-binding.
        Returns:
        the current protocols
      • setProtocols

        public void setProtocols​(String protocol)
        Used by groovy for data-binding.
        Parameters:
        protocol - set the principal format
      • getProviders

        public String getProviders()
        Used by groovy for data-binding.
        Returns:
        the current providers
      • setProviders

        public void setProviders​(String provider)
        Used by groovy for data-binding.
        Parameters:
        provider - set the principal format
      • isAllowImpersonate

        public boolean isAllowImpersonate()
        Used by groovy for data-binding.
        Returns:
        whether servlet delegation should be used.
      • isAllowLocalhost

        public boolean isAllowLocalhost()
        Used by groovy for data-binding.
        Returns:
        whether localhost is allowed without authentication.
      • isRedirectEnabled

        public boolean isRedirectEnabled()
        Used by groovy for data-binding.
        Returns:
        whether unauthenticated requests should be redirected
      • getRedirect

        public String getRedirect()
        Used by groovy for data-binding.
        Returns:
        the site to redirect to
      • setRedirect

        public void setRedirect​(String redirect)
        Used by groovy for data-binding.
        Parameters:
        redirect - the site to redirect to
      • doFillRoleFormatItems

        public ListBoxModel doFillRoleFormatItems()
        Used by groovy for data-binding.
        Returns:
        the allowed role format strings
      • doFillPrincipalFormatItems

        public ListBoxModel doFillPrincipalFormatItems()
        Used by groovy for data-binding.
        Returns:
        the allowed principal format strings
      • doFillProtocolsItems

        public ListBoxModel doFillProtocolsItems()
        Used by groovy for data-binding.
        Returns:
        the allowed protocol strings
      • doFillProvidersItems

        public ListBoxModel doFillProvidersItems()
        Used by groovy for data-binding.
        Returns:
        the allowed provider strings