what-the-bank/sources/o/C15425gqD.java

82 lines
3.3 KiB
Java

package o;
import java.io.IOException;
import java.security.cert.CertSelector;
import java.security.cert.Certificate;
import java.security.cert.X509CertSelector;
/* renamed from: o.gqD, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15425gqD<T extends Certificate> implements InterfaceC15467grM<T> {
public final CertSelector b;
public /* synthetic */ C15425gqD(CertSelector certSelector, byte b) {
this(certSelector);
}
/* renamed from: o.gqD$RVV */
/* loaded from: classes6.dex */
public static class RVV {
public final CertSelector a;
public RVV(CertSelector certSelector) {
this.a = (CertSelector) certSelector.clone();
}
}
private C15425gqD(CertSelector certSelector) {
this.b = certSelector;
}
@Override // o.InterfaceC15467grM
public final Object clone() {
return new C15425gqD(this.b);
}
/* renamed from: o.gqD$HBt */
/* loaded from: classes6.dex */
public static class HBt extends X509CertSelector {
private final C15425gqD c;
public HBt(C15425gqD c15425gqD) {
this.c = c15425gqD;
if (c15425gqD.b instanceof X509CertSelector) {
X509CertSelector x509CertSelector = (X509CertSelector) c15425gqD.b;
setAuthorityKeyIdentifier(x509CertSelector.getAuthorityKeyIdentifier());
setBasicConstraints(x509CertSelector.getBasicConstraints());
setCertificate(x509CertSelector.getCertificate());
setCertificateValid(x509CertSelector.getCertificateValid());
setKeyUsage(x509CertSelector.getKeyUsage());
setMatchAllSubjectAltNames(x509CertSelector.getMatchAllSubjectAltNames());
setPrivateKeyValid(x509CertSelector.getPrivateKeyValid());
setSerialNumber(x509CertSelector.getSerialNumber());
setSubjectKeyIdentifier(x509CertSelector.getSubjectKeyIdentifier());
setSubjectPublicKey(x509CertSelector.getSubjectPublicKey());
try {
setExtendedKeyUsage(x509CertSelector.getExtendedKeyUsage());
setIssuer(x509CertSelector.getIssuerAsBytes());
setNameConstraints(x509CertSelector.getNameConstraints());
setPathToNames(x509CertSelector.getPathToNames());
setPolicy(x509CertSelector.getPolicy());
setSubject(x509CertSelector.getSubjectAsBytes());
setSubjectAlternativeNames(x509CertSelector.getSubjectAlternativeNames());
setSubjectPublicKeyAlgID(x509CertSelector.getSubjectPublicKeyAlgID());
} catch (IOException e) {
StringBuilder sb = new StringBuilder("base selector invalid: ");
sb.append(e.getMessage());
throw new IllegalStateException(sb.toString(), e);
}
}
}
@Override // java.security.cert.X509CertSelector, java.security.cert.CertSelector
public final boolean match(Certificate certificate) {
C15425gqD c15425gqD = this.c;
if (c15425gqD == null) {
return certificate != null;
}
return c15425gqD.b.match(certificate);
}
}
}