diff options
Diffstat (limited to 'libraries/spongycastle/prov/src/main/java/org/spongycastle/x509/CertPathReviewerException.java')
-rw-r--r-- | libraries/spongycastle/prov/src/main/java/org/spongycastle/x509/CertPathReviewerException.java | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/libraries/spongycastle/prov/src/main/java/org/spongycastle/x509/CertPathReviewerException.java b/libraries/spongycastle/prov/src/main/java/org/spongycastle/x509/CertPathReviewerException.java deleted file mode 100644 index ddf89748e..000000000 --- a/libraries/spongycastle/prov/src/main/java/org/spongycastle/x509/CertPathReviewerException.java +++ /dev/null @@ -1,72 +0,0 @@ -package org.spongycastle.x509; - -import java.security.cert.CertPath; - -import org.spongycastle.i18n.ErrorBundle; -import org.spongycastle.i18n.LocalizedException; - -public class CertPathReviewerException extends LocalizedException -{ - - private int index = -1; - - private CertPath certPath = null; - - public CertPathReviewerException(ErrorBundle errorMessage, Throwable throwable) - { - super(errorMessage, throwable); - } - - public CertPathReviewerException(ErrorBundle errorMessage) - { - super(errorMessage); - } - - public CertPathReviewerException( - ErrorBundle errorMessage, - Throwable throwable, - CertPath certPath, - int index) - { - super(errorMessage, throwable); - if (certPath == null || index == -1) - { - throw new IllegalArgumentException(); - } - if (index < -1 || (certPath != null && index >= certPath.getCertificates().size())) - { - throw new IndexOutOfBoundsException(); - } - this.certPath = certPath; - this.index = index; - } - - public CertPathReviewerException( - ErrorBundle errorMessage, - CertPath certPath, - int index) - { - super(errorMessage); - if (certPath == null || index == -1) - { - throw new IllegalArgumentException(); - } - if (index < -1 || (certPath != null && index >= certPath.getCertificates().size())) - { - throw new IndexOutOfBoundsException(); - } - this.certPath = certPath; - this.index = index; - } - - public CertPath getCertPath() - { - return certPath; - } - - public int getIndex() - { - return index; - } - -} |