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:
authorDavid Hook <dgh@cryptoworkshop.com>2014-06-30 08:31:21 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-06-30 08:31:21 +0400
commit86d074dbcf9b6bab29985eee7b7187f3b85b0f43 (patch)
tree11aaa17be8b26f3f421e591355217e8d2d992994 /prov/src/test/java/org/bouncycastle/jce
parent626e4c25f77c8441046881a2dbb4367d4f0d6d51 (diff)
1.3 compatibility updates, minor cleanups.
Diffstat (limited to 'prov/src/test/java/org/bouncycastle/jce')
-rw-r--r--prov/src/test/java/org/bouncycastle/jce/provider/test/nist/NistCertPathTest.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/prov/src/test/java/org/bouncycastle/jce/provider/test/nist/NistCertPathTest.java b/prov/src/test/java/org/bouncycastle/jce/provider/test/nist/NistCertPathTest.java
index f314ee38..af94e4e1 100644
--- a/prov/src/test/java/org/bouncycastle/jce/provider/test/nist/NistCertPathTest.java
+++ b/prov/src/test/java/org/bouncycastle/jce/provider/test/nist/NistCertPathTest.java
@@ -34,8 +34,9 @@ import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.bouncycastle.asn1.ASN1Encodable;
import org.bouncycastle.asn1.ASN1Encoding;
-import org.bouncycastle.asn1.x509.X509Extension;
-import org.bouncycastle.x509.extension.X509ExtensionUtil;
+import org.bouncycastle.asn1.ASN1OctetString;
+import org.bouncycastle.asn1.ASN1Primitive;
+import org.bouncycastle.asn1.x509.Extension;
/**
* NIST CertPath test data for RFC 3280
@@ -830,11 +831,11 @@ public class NistCertPathTest
throws Exception
{
X509Certificate cert = loadCert(trustAnchorName);
- byte[] extBytes = cert.getExtensionValue(X509Extension.nameConstraints.getId());
+ byte[] extBytes = cert.getExtensionValue(Extension.nameConstraints.getId());
if (extBytes != null)
{
- ASN1Encodable extValue = X509ExtensionUtil.fromExtensionValue(extBytes);
+ ASN1Encodable extValue = ASN1Primitive.fromByteArray(ASN1OctetString.getInstance(extBytes).getOctets());
return new TrustAnchor(cert, extValue.toASN1Primitive().getEncoded(ASN1Encoding.DER));
}