package p447;

import java.nio.charset.Charset;
import p138.p139.p143.p144.C2803;
import p402.p411.p413.C6635;
import p461.C7108;

/* JADX INFO: renamed from: ސ.ލ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C6889 {
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static final String m10049(String str, String str2, Charset charset) {
        if (str == null) {
            C6635.m9824("username");
            throw null;
        }
        if (str2 == null) {
            C6635.m9824("password");
            throw null;
        }
        if (charset == null) {
            C6635.m9824("charset");
            throw null;
        }
        String str3 = str + ':' + str2;
        if (C7108.f20634 == null) {
            throw null;
        }
        if (str3 == null) {
            C6635.m9824("$this$encode");
            throw null;
        }
        byte[] bytes = str3.getBytes(charset);
        C6635.m9823((Object) bytes, "(this as java.lang.String).getBytes(charset)");
        return C2803.m4879("Basic ", new C7108(bytes).mo10449());
    }
}
