what-the-bank/sources/org/bouncycastle/x509/CertPathReviewerException.java

60 lines
1.7 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.x509;
import java.security.cert.CertPath;
import org.bouncycastle.i18n.ErrorBundle;
import org.bouncycastle.i18n.LocalizedException;
/* loaded from: classes6.dex */
public class CertPathReviewerException extends LocalizedException {
private CertPath certPath;
private int index;
public int getIndex() {
return this.index;
}
public CertPath getCertPath() {
return this.certPath;
}
public CertPathReviewerException(ErrorBundle errorBundle, CertPath certPath, int i) {
super(errorBundle);
this.index = -1;
this.certPath = null;
if (certPath == null || i == -1) {
throw new IllegalArgumentException();
}
if (i < -1 || (certPath != null && i >= certPath.getCertificates().size())) {
throw new IndexOutOfBoundsException();
}
this.certPath = certPath;
this.index = i;
}
public CertPathReviewerException(ErrorBundle errorBundle, Throwable th, CertPath certPath, int i) {
super(errorBundle, th);
this.index = -1;
this.certPath = null;
if (certPath == null || i == -1) {
throw new IllegalArgumentException();
}
if (i < -1 || (certPath != null && i >= certPath.getCertificates().size())) {
throw new IndexOutOfBoundsException();
}
this.certPath = certPath;
this.index = i;
}
public CertPathReviewerException(ErrorBundle errorBundle, Throwable th) {
super(errorBundle, th);
this.index = -1;
this.certPath = null;
}
public CertPathReviewerException(ErrorBundle errorBundle) {
super(errorBundle);
this.index = -1;
this.certPath = null;
}
}