Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkix/src/main/java/org/bouncycastle/cert/path/CertPathValidationResult.java')
-rw-r--r--pkix/src/main/java/org/bouncycastle/cert/path/CertPathValidationResult.java66
1 files changed, 0 insertions, 66 deletions
diff --git a/pkix/src/main/java/org/bouncycastle/cert/path/CertPathValidationResult.java b/pkix/src/main/java/org/bouncycastle/cert/path/CertPathValidationResult.java
deleted file mode 100644
index facefb45..00000000
--- a/pkix/src/main/java/org/bouncycastle/cert/path/CertPathValidationResult.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.bouncycastle.cert.path;
-
-import java.util.Collections;
-import java.util.Set;
-
-public class CertPathValidationResult
-{
- private final boolean isValid;
- private final CertPathValidationException cause;
- private final Set unhandledCriticalExtensionOIDs;
-
- private int[] certIndexes;
-
- public CertPathValidationResult(CertPathValidationContext context)
- {
- this.unhandledCriticalExtensionOIDs = Collections.unmodifiableSet(context.getUnhandledCriticalExtensionOIDs());
- this.isValid = this.unhandledCriticalExtensionOIDs.isEmpty();
- cause = null;
- }
-
- public CertPathValidationResult(CertPathValidationContext context, int certIndex, int ruleIndex, CertPathValidationException cause)
- {
- this.unhandledCriticalExtensionOIDs = Collections.unmodifiableSet(context.getUnhandledCriticalExtensionOIDs());
- this.isValid = false;
- this.cause = cause;
- }
-
- public CertPathValidationResult(CertPathValidationContext context, int[] certIndexes, int[] ruleIndexes, CertPathValidationException[] cause)
- {
- // TODO
- this.unhandledCriticalExtensionOIDs = Collections.unmodifiableSet(context.getUnhandledCriticalExtensionOIDs());
- this.isValid = false;
- this.cause = cause[0];
- this.certIndexes = certIndexes;
- }
-
- public boolean isValid()
- {
- return isValid;
- }
-
- public Exception getCause()
- {
- if (cause != null)
- {
- return cause;
- }
-
- if (!unhandledCriticalExtensionOIDs.isEmpty())
- {
- return new CertPathValidationException("Unhandled Critical Extensions");
- }
-
- return null;
- }
-
- public Set getUnhandledCriticalExtensionOIDs()
- {
- return unhandledCriticalExtensionOIDs;
- }
-
- public boolean isDetailed()
- {
- return this.certIndexes != null;
- }
-}