Package org.owasp.dependencycheck.utils
Class HC5CredentialHelper
- java.lang.Object
-
- org.owasp.dependencycheck.utils.HC5CredentialHelper
-
public final class HC5CredentialHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configurePreEmptiveBasicAuth(java.net.URL theURL, java.lang.String theUser, java.lang.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 void
configurePreEmptiveBearerAuth(java.net.URL theURL, java.lang.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 Detail
-
configurePreEmptiveBearerAuth
public static void configurePreEmptiveBearerAuth(java.net.URL theURL, java.lang.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(java.net.URL theURL, java.lang.String theUser, java.lang.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
-
-