57 lines
2.4 KiB
Java
57 lines
2.4 KiB
Java
|
package o;
|
||
|
|
||
|
import java.security.InvalidAlgorithmParameterException;
|
||
|
import java.security.InvalidParameterException;
|
||
|
import java.security.cert.CertPathBuilderException;
|
||
|
import java.security.cert.CertPathBuilderResult;
|
||
|
import java.security.cert.CertPathBuilderSpi;
|
||
|
import java.security.cert.CertPathParameters;
|
||
|
import java.security.cert.PKIXBuilderParameters;
|
||
|
import java.util.ArrayList;
|
||
|
import java.util.Collections;
|
||
|
import o.gqA;
|
||
|
|
||
|
/* renamed from: o.grd, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public class C15476grd extends CertPathBuilderSpi {
|
||
|
@Override // java.security.cert.CertPathBuilderSpi
|
||
|
public CertPathBuilderResult engineBuild(CertPathParameters certPathParameters) throws CertPathBuilderException, InvalidAlgorithmParameterException {
|
||
|
gqA gqa;
|
||
|
boolean z = certPathParameters instanceof PKIXBuilderParameters;
|
||
|
if (!z && !(certPathParameters instanceof C15507gsc) && !(certPathParameters instanceof gqA)) {
|
||
|
StringBuilder sb = new StringBuilder("Parameters must be an instance of ");
|
||
|
sb.append(PKIXBuilderParameters.class.getName());
|
||
|
sb.append(" or ");
|
||
|
sb.append(gqA.class.getName());
|
||
|
sb.append(".");
|
||
|
throw new InvalidAlgorithmParameterException(sb.toString());
|
||
|
}
|
||
|
new ArrayList();
|
||
|
if (z) {
|
||
|
gqA.LWm lWm = new gqA.LWm((PKIXBuilderParameters) certPathParameters);
|
||
|
if (certPathParameters instanceof C15472grZ) {
|
||
|
C15507gsc c15507gsc = (C15507gsc) certPathParameters;
|
||
|
lWm.d.addAll(Collections.unmodifiableSet(c15507gsc.b));
|
||
|
int i = c15507gsc.a;
|
||
|
if (i >= -1) {
|
||
|
lWm.a = i;
|
||
|
Collections.unmodifiableList(new ArrayList(c15507gsc.f));
|
||
|
} else {
|
||
|
throw new InvalidParameterException("The maximum path length parameter can not be less than -1.");
|
||
|
}
|
||
|
}
|
||
|
gqa = new gqA(lWm, (byte) 0);
|
||
|
} else {
|
||
|
gqa = (gqA) certPathParameters;
|
||
|
}
|
||
|
new ArrayList();
|
||
|
C15425gqD c15425gqD = gqa.e.g;
|
||
|
StringBuilder sb2 = new StringBuilder("TargetConstraints must be an instance of ");
|
||
|
sb2.append(C15513gsi.class.getName());
|
||
|
sb2.append(" for ");
|
||
|
sb2.append(getClass().getName());
|
||
|
sb2.append(" class.");
|
||
|
throw new CertPathBuilderException(sb2.toString());
|
||
|
}
|
||
|
}
|