content: package okhttp3;
  
  import java.nio.charset.Charset;
  import java.nio.charset.StandardCharsets;
  import kotlin.Metadata;
  import kotlin.jvm.JvmStatic;
  import kotlin.jvm.internal.Intrinsics;
  import mt.Log1F380D;
  import okio.ByteString;
  
  @Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\"\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0006\u001a\u00020\u00042\b\b\u0002\u0010\u0007\u001a\u00020\bH\u0007¨\u0006\t"}, d2 = {"Lokhttp3/Credentials;", "", "()V", "basic", "", "username", "password", "charset", "Ljava/nio/charset/Charset;", "okhttp"}, k = 1, mv = {1, 4, 0})
  /* compiled from: 01B7 */
  public final class Credentials {
      public static final Credentials INSTANCE = new Credentials();
  
      private Credentials() {
      }
  
      @JvmStatic
      public static final String basic(String str, String str2) {
          String basic$default = basic$default(str, str2, (Charset) null, 4, (Object) null);
          Log1F380D.a((Object) basic$default);
          return basic$default;
      }
  
      @JvmStatic
      public static final String basic(String username, String password, Charset charset) {
          Intrinsics.checkNotNullParameter(username, "username");
          Intrinsics.checkNotNullParameter(password, "password");
          Intrinsics.checkNotNullParameter(charset, "charset");
          return "Basic " + ByteString.Companion.encodeString(username + ':' + password, charset).base64();
      }
  
      public static /* synthetic */ String basic$default(String str, String str2, Charset charset, int i, Object obj) {
          if ((i & 4) != 0) {
              charset = StandardCharsets.ISO_8859_1;
              Intrinsics.checkNotNullExpressionValue(charset, "ISO_8859_1");
          }
          String basic = basic(str, str2, charset);
          Log1F380D.a((Object) basic);
          return basic;
      }
  }
  