Class ApacheHttpCredentialsProvider

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

    public class ApacheHttpCredentialsProvider
    extends Object
    implements org.apache.http.client.CredentialsProvider
    • Constructor Detail

      • ApacheHttpCredentialsProvider

        public ApacheHttpCredentialsProvider​(String hostname,
                                             int port,
                                             String user,
                                             String pass)
    • 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