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:
authorPeter Dettman <peter.dettman@bouncycastle.org>2013-06-29 08:32:53 +0400
committerPeter Dettman <peter.dettman@bouncycastle.org>2013-06-29 08:32:53 +0400
commitd5f802e2244a28b1e24b630bf892cd01be28b0e7 (patch)
tree2a90d7c242e8e1ad9061c22f6544f12c0948484a /core/src/main/java/org/bouncycastle/crypto/tls/CertChainType.java
parent59fc7f4c2ac14185e2b32d7fc16c4c35aee655a1 (diff)
New struct CertChainType from RFC 3546
Diffstat (limited to 'core/src/main/java/org/bouncycastle/crypto/tls/CertChainType.java')
-rw-r--r--core/src/main/java/org/bouncycastle/crypto/tls/CertChainType.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/main/java/org/bouncycastle/crypto/tls/CertChainType.java b/core/src/main/java/org/bouncycastle/crypto/tls/CertChainType.java
new file mode 100644
index 00000000..8902ed79
--- /dev/null
+++ b/core/src/main/java/org/bouncycastle/crypto/tls/CertChainType.java
@@ -0,0 +1,15 @@
+package org.bouncycastle.crypto.tls;
+
+/*
+ * RFC 3546 3.3.
+ */
+public class CertChainType
+{
+ public static final short individual_certs = 0;
+ public static final short pkipath = 1;
+
+ public static boolean isValid(short certChainType)
+ {
+ return certChainType >= individual_certs && certChainType <= pkipath;
+ }
+}