package o; import java.security.InvalidAlgorithmParameterException; import java.security.cert.CertSelector; import java.security.cert.CertStore; import java.security.cert.PKIXParameters; import java.security.cert.TrustAnchor; import java.security.cert.X509CertSelector; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; /* renamed from: o.grZ, reason: case insensitive filesystem */ /* loaded from: classes6.dex */ public class C15472grZ extends PKIXParameters { private boolean a; private InterfaceC15467grM b; public List c; public Set d; public Set e; public List f; public int g; private Set h; public boolean i; public Set j; public C15472grZ(Set set) throws InvalidAlgorithmParameterException { super((Set) set); this.g = 0; this.i = false; this.f = new ArrayList(); this.c = new ArrayList(); this.h = new HashSet(); this.e = new HashSet(); this.j = new HashSet(); this.d = new HashSet(); } /* JADX INFO: Access modifiers changed from: protected */ public void e(PKIXParameters pKIXParameters) { setDate(pKIXParameters.getDate()); setCertPathCheckers(pKIXParameters.getCertPathCheckers()); setCertStores(pKIXParameters.getCertStores()); setAnyPolicyInhibited(pKIXParameters.isAnyPolicyInhibited()); setExplicitPolicyRequired(pKIXParameters.isExplicitPolicyRequired()); setPolicyMappingInhibited(pKIXParameters.isPolicyMappingInhibited()); setRevocationEnabled(pKIXParameters.isRevocationEnabled()); setInitialPolicies(pKIXParameters.getInitialPolicies()); setPolicyQualifiersRejected(pKIXParameters.getPolicyQualifiersRejected()); setSigProvider(pKIXParameters.getSigProvider()); setTargetCertConstraints(pKIXParameters.getTargetCertConstraints()); try { setTrustAnchors(pKIXParameters.getTrustAnchors()); if (pKIXParameters instanceof C15472grZ) { C15472grZ c15472grZ = (C15472grZ) pKIXParameters; this.g = c15472grZ.g; this.i = c15472grZ.i; this.a = c15472grZ.a; InterfaceC15467grM interfaceC15467grM = c15472grZ.b; this.b = interfaceC15467grM == null ? null : (InterfaceC15467grM) interfaceC15467grM.clone(); this.f = new ArrayList(c15472grZ.f); this.c = new ArrayList(c15472grZ.c); this.h = new HashSet(c15472grZ.h); this.j = new HashSet(c15472grZ.j); this.e = new HashSet(c15472grZ.e); this.d = new HashSet(c15472grZ.d); } } catch (Exception e) { throw new RuntimeException(e.getMessage()); } } @Override // java.security.cert.PKIXParameters public void setCertStores(List list) { if (list != null) { Iterator it = list.iterator(); while (it.hasNext()) { addCertStore((CertStore) it.next()); } } } @Override // java.security.cert.PKIXParameters, java.security.cert.CertPathParameters public Object clone() { try { C15472grZ c15472grZ = new C15472grZ(getTrustAnchors()); c15472grZ.e(this); return c15472grZ; } catch (Exception e) { throw new RuntimeException(e.getMessage()); } } public final InterfaceC15467grM b() { InterfaceC15467grM interfaceC15467grM = this.b; if (interfaceC15467grM != null) { return (InterfaceC15467grM) interfaceC15467grM.clone(); } return null; } public final void d(InterfaceC15467grM interfaceC15467grM) { this.b = interfaceC15467grM != null ? (InterfaceC15467grM) interfaceC15467grM.clone() : null; } @Override // java.security.cert.PKIXParameters public void setTargetCertConstraints(CertSelector certSelector) { super.setTargetCertConstraints(certSelector); this.b = certSelector != null ? C15512gsh.d((X509CertSelector) certSelector) : null; } }