Class HC5CredentialHelper
java.lang.Object
org.owasp.dependencycheck.utils.HC5CredentialHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidconfigurePreEmptiveBasicAuth(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.static voidconfigurePreEmptiveBearerAuth(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.
-
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 auththeToken- The token for Bearer authcredentialsStore- The credential store that will be set in the HTTP clients contextauthCache- 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 auththeUser- The username for Basic auththePass- The password for Basic authcredentialsStore- The credential store that will be set in the HTTP clients contextauthCache- The authentication cache that will be set in the HTTP clients context
-