congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AuthenticatorUtils.getProxyAuthorizationHeader
Code IndexAdd Tabnine to your IDE (free)

How to use
getProxyAuthorizationHeader
method
in
org.asynchttpclient.util.AuthenticatorUtils

Best Java code snippets using org.asynchttpclient.util.AuthenticatorUtils.getProxyAuthorizationHeader (Showing top 1 results out of 315)

origin: org.asynchttpclient/async-http-client-api

public static String perConnectionProxyAuthorizationHeader(Request request, ProxyServer proxyServer, boolean connect) {
  String proxyAuthorization = null;
  if (connect) {
    List<String> auth = getProxyAuthorizationHeader(request);
    String ntlmHeader = getNTLM(auth);
    if (ntlmHeader != null) {
      proxyAuthorization = ntlmHeader;
    }
  } else if (proxyServer != null && proxyServer.getPrincipal() != null && proxyServer.getScheme().isLikeNtlm()) {
    List<String> auth = getProxyAuthorizationHeader(request);
    if (getNTLM(auth) == null) {
      String msg = NtlmEngine.INSTANCE.generateType1Msg();
      proxyAuthorization = "NTLM " + msg;
    }
  }
  return proxyAuthorization;
}

org.asynchttpclient.utilAuthenticatorUtilsgetProxyAuthorizationHeader

Popular methods of AuthenticatorUtils

  • perConnectionAuthorizationHeader
  • perConnectionProxyAuthorizationHeader
  • perRequestAuthorizationHeader
  • perRequestProxyAuthorizationHeader
  • append
  • computeBasicAuthentication
  • computeDigestAuthentication
  • computeRealmURI
  • getHeaderWithPrefix

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JTable (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Table (org.hibernate.mapping)
    A relational table
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now