Class AbstractAuthenticationHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      protected java.util.List<java.lang.String> getAuthPreferences()
      Deprecated.
      Returns default list of auth scheme names in their order of preference.
      protected java.util.List<java.lang.String> getAuthPreferences​(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
      Deprecated.
      Returns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.
      protected java.util.Map<java.lang.String,​org.apache.http.Header> parseChallenges​(org.apache.http.Header[] headers)
      Deprecated.
       
      AuthScheme selectScheme​(java.util.Map<java.lang.String,​org.apache.http.Header> challenges, org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
      Deprecated.
      Selects one authentication challenge out of all available and creates and generates AuthScheme instance capable of processing that challenge.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractAuthenticationHandler

        public AbstractAuthenticationHandler()
        Deprecated.
    • Method Detail

      • getAuthPreferences

        protected java.util.List<java.lang.String> getAuthPreferences()
        Deprecated.
        Returns default list of auth scheme names in their order of preference.
        Returns:
        list of auth scheme names
      • getAuthPreferences

        protected java.util.List<java.lang.String> getAuthPreferences​(org.apache.http.HttpResponse response,
                                                                      org.apache.http.protocol.HttpContext context)
        Deprecated.
        Returns default list of auth scheme names in their order of preference based on the HTTP response and the current execution context.
        Parameters:
        response - HTTP response.
        context - HTTP execution context.
        Since:
        4.1
      • selectScheme

        public AuthScheme selectScheme​(java.util.Map<java.lang.String,​org.apache.http.Header> challenges,
                                       org.apache.http.HttpResponse response,
                                       org.apache.http.protocol.HttpContext context)
                                throws AuthenticationException
        Deprecated.
        Description copied from interface: AuthenticationHandler
        Selects one authentication challenge out of all available and creates and generates AuthScheme instance capable of processing that challenge.
        Specified by:
        selectScheme in interface AuthenticationHandler
        Parameters:
        challenges - collection of challenges.
        response - HTTP response.
        context - HTTP context.
        Returns:
        authentication scheme to use for authentication.
        Throws:
        AuthenticationException - if an authentication scheme could not be selected.