Class BasicAuthentication

java.lang.Object
com.agido.logback.elasticsearch.config.BasicAuthentication
All Implemented Interfaces:
Authentication

public class BasicAuthentication extends Object implements Authentication
  • Constructor Details

    • BasicAuthentication

      public BasicAuthentication()
  • Method Details

    • addAuth

      public void addAuth(HttpURLConnection urlConnection, String body)
      Description copied from interface: Authentication
      Modify the given urlConnection for whatever authentication scheme is used.
      Specified by:
      addAuth in interface Authentication
      Parameters:
      urlConnection - the connection to the server
      body - the message being sent