Class SolrBasicAuthentication

  • All Implemented Interfaces:
    org.eclipse.jetty.client.api.Authentication

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

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

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

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

        ANY_REALM
    • Constructor Detail

      • SolrBasicAuthentication

        public SolrBasicAuthentication​(String user,
                                       String password)
    • Method Detail

      • matches

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

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