package g2;

import java.io.IOException;

/* JADX INFO: compiled from: DERExternalParser.java */
/* JADX INFO: loaded from: classes.dex */
public class o0 implements d, s1 {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private w f4730e;

    public o0(w wVar) {
        this.f4730e = wVar;
    }

    @Override // g2.s1
    public s a() throws IOException {
        try {
            return new j1(this.f4730e.d());
        } catch (IllegalArgumentException e3) {
            throw new g(e3.getMessage(), e3);
        }
    }

    @Override // g2.d
    public s c() {
        try {
            return a();
        } catch (IOException e3) {
            throw new r("unable to get DER object", e3);
        } catch (IllegalArgumentException e4) {
            throw new r("unable to get DER object", e4);
        }
    }
}
