Class MfCredentialsProvider

  • All Implemented Interfaces:
    org.apache.http.client.CredentialsProvider

    public final class MfCredentialsProvider
    extends java.lang.Object
    implements org.apache.http.client.CredentialsProvider
    A Route planner that obtains credentials from the configuration that is currently in MfClientHttpRequestFactoryImpl.CURRENT_CONFIGURATION.

    If authentication is not found in configuration then it will fall back to SystemDefaultCredentialsProvider

    MfClientHttpRequestFactoryImpl.Request will set the correct configuration before the request is executed so that correct proxies will be set.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      org.apache.http.auth.Credentials getCredentials​(org.apache.http.auth.AuthScope authscope)  
      void setCredentials​(org.apache.http.auth.AuthScope authscope, org.apache.http.auth.Credentials credentials)  
      • Methods inherited from class java.lang.Object

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

      • MfCredentialsProvider

        public MfCredentialsProvider()
    • Method Detail

      • setCredentials

        public void setCredentials​(org.apache.http.auth.AuthScope authscope,
                                   org.apache.http.auth.Credentials credentials)
        Specified by:
        setCredentials in interface org.apache.http.client.CredentialsProvider
      • getCredentials

        public org.apache.http.auth.Credentials getCredentials​(org.apache.http.auth.AuthScope authscope)
        Specified by:
        getCredentials in interface org.apache.http.client.CredentialsProvider
      • clear

        public void clear()
        Specified by:
        clear in interface org.apache.http.client.CredentialsProvider