56 lines
2.3 KiB
Java
56 lines
2.3 KiB
Java
package o;
|
|
|
|
import java.security.InvalidAlgorithmParameterException;
|
|
import java.security.cert.CertPath;
|
|
import java.security.cert.CertPathParameters;
|
|
import java.security.cert.CertPathValidatorException;
|
|
import java.security.cert.CertPathValidatorResult;
|
|
import java.security.cert.CertPathValidatorSpi;
|
|
import java.security.cert.PKIXParameters;
|
|
import java.util.Collections;
|
|
import java.util.HashSet;
|
|
import o.C15457gqz;
|
|
|
|
/* renamed from: o.gre, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public class C15477gre extends CertPathValidatorSpi {
|
|
private final gqQ d = new gqR();
|
|
|
|
@Override // java.security.cert.CertPathValidatorSpi
|
|
public CertPathValidatorResult engineValidate(CertPath certPath, CertPathParameters certPathParameters) throws CertPathValidatorException, InvalidAlgorithmParameterException {
|
|
C15457gqz c15457gqz;
|
|
boolean z = certPathParameters instanceof C15472grZ;
|
|
if (!z && !(certPathParameters instanceof C15457gqz)) {
|
|
StringBuilder sb = new StringBuilder("Parameters must be a ");
|
|
sb.append(C15472grZ.class.getName());
|
|
sb.append(" instance.");
|
|
throw new InvalidAlgorithmParameterException(sb.toString());
|
|
}
|
|
new HashSet();
|
|
new HashSet();
|
|
new HashSet();
|
|
new HashSet();
|
|
if (certPathParameters instanceof PKIXParameters) {
|
|
C15457gqz.LWm lWm = new C15457gqz.LWm((PKIXParameters) certPathParameters);
|
|
if (z) {
|
|
C15472grZ c15472grZ = (C15472grZ) certPathParameters;
|
|
lWm.i = c15472grZ.i;
|
|
lWm.f9150o = c15472grZ.g;
|
|
Collections.unmodifiableSet(c15472grZ.d);
|
|
Collections.unmodifiableSet(c15472grZ.j);
|
|
Collections.unmodifiableSet(c15472grZ.e);
|
|
}
|
|
c15457gqz = new C15457gqz(lWm, (byte) 0);
|
|
} else {
|
|
c15457gqz = (C15457gqz) certPathParameters;
|
|
}
|
|
C15425gqD c15425gqD = c15457gqz.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 InvalidAlgorithmParameterException(sb2.toString());
|
|
}
|
|
}
|