Class HC5CredentialHelper

java.lang.Object
org.owasp.dependencycheck.utils.HC5CredentialHelper

public final class HC5CredentialHelper extends Object
  • Method Details

    • configurePreEmptiveBearerAuth

      public static void configurePreEmptiveBearerAuth(URL theURL, String theToken, org.apache.hc.client5.http.auth.CredentialsStore credentialsStore, org.apache.hc.client5.http.auth.AuthCache authCache)
      Configure pre-emptive Bearer Auth for the host of the URL.
      Parameters:
      theURL - The URL to be authenticated by HTTP Bearer auth
      theToken - The token for Bearer auth
      credentialsStore - The credential store that will be set in the HTTP clients context
      authCache - The authentication cache that will be set in the HTTP clients context
    • configurePreEmptiveBasicAuth

      public static void configurePreEmptiveBasicAuth(URL theURL, String theUser, String thePass, org.apache.hc.client5.http.auth.CredentialsStore credentialsStore, org.apache.hc.client5.http.auth.AuthCache authCache)
      Configure pre-emptive Basic Auth for the host of the URL.
      Parameters:
      theURL - The URL to be authenticated by HTTP Basic auth
      theUser - The username for Basic auth
      thePass - The password for Basic auth
      credentialsStore - The credential store that will be set in the HTTP clients context
      authCache - The authentication cache that will be set in the HTTP clients context