Class AttivioDefaultCredentialsProvider

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

    public class AttivioDefaultCredentialsProvider
    extends java.lang.Object
    implements org.apache.http.client.CredentialsProvider
    Default credentials provider to pass to setCredentialsProvider(cp) for authentication.
    • 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

      • AttivioDefaultCredentialsProvider

        public AttivioDefaultCredentialsProvider​(java.lang.String username,
                                                 java.lang.String password)
        Constructor
        Parameters:
        username -
        password - can be plain text
    • Method Detail

      • getCredentials

        public org.apache.http.auth.Credentials getCredentials​(org.apache.http.auth.AuthScope authScope)
        Specified by:
        getCredentials in interface org.apache.http.client.CredentialsProvider
      • 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
      • clear

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