Class SolrBasicAuthentication

java.lang.Object
org.apache.solr.client.solrj.jetty.SolrBasicAuthentication
All Implemented Interfaces:
org.eclipse.jetty.client.Authentication

public class SolrBasicAuthentication extends Object implements org.eclipse.jetty.client.Authentication
BasicAuthentication that does not care about uri and realm
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.eclipse.jetty.client.Authentication

    org.eclipse.jetty.client.Authentication.HeaderInfo, org.eclipse.jetty.client.Authentication.Result
  • Field Summary

    Fields inherited from interface org.eclipse.jetty.client.Authentication

    ANY_REALM
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jetty.client.Authentication.Result
    authenticate(org.eclipse.jetty.client.Request request, org.eclipse.jetty.client.ContentResponse response, org.eclipse.jetty.client.Authentication.HeaderInfo headerInfo, org.eclipse.jetty.util.Attributes context)
     
    boolean
    matches(String type, URI uri, String realm)
     

    Methods inherited from class java.lang.Object

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

    • SolrBasicAuthentication

      public SolrBasicAuthentication(String user, String password)
  • Method Details

    • matches

      public boolean matches(String type, URI uri, String realm)
      Specified by:
      matches in interface org.eclipse.jetty.client.Authentication
    • authenticate

      public org.eclipse.jetty.client.Authentication.Result authenticate(org.eclipse.jetty.client.Request request, org.eclipse.jetty.client.ContentResponse response, org.eclipse.jetty.client.Authentication.HeaderInfo headerInfo, org.eclipse.jetty.util.Attributes context)
      Specified by:
      authenticate in interface org.eclipse.jetty.client.Authentication