Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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​(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 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