package S3;

import X3.X;
import X3.r0;
import com.google.crypto.tink.shaded.protobuf.AbstractC1261i;
import java.security.GeneralSecurityException;

/* JADX INFO: loaded from: classes3.dex */
public final class o {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f6241a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Z3.a f6242b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final AbstractC1261i f6243c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final X f6244d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final r0 f6245e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final Integer f6246f;

    public o(String str, AbstractC1261i abstractC1261i, X x6, r0 r0Var, Integer num) {
        this.f6241a = str;
        this.f6242b = t.b(str);
        this.f6243c = abstractC1261i;
        this.f6244d = x6;
        this.f6245e = r0Var;
        this.f6246f = num;
    }

    public static o a(String str, AbstractC1261i abstractC1261i, X x6, r0 r0Var, Integer num) throws GeneralSecurityException {
        if (r0Var == r0.RAW) {
            if (num != null) {
                throw new GeneralSecurityException("Keys with output prefix type raw should not have an id requirement.");
            }
        } else if (num == null) {
            throw new GeneralSecurityException("Keys with output prefix type different from raw should have an id requirement.");
        }
        return new o(str, abstractC1261i, x6, r0Var, num);
    }
}
