[java-opensaml] 01/02: IDP-1397: Removal of deprecated features
Brent Putman
putmanb at georgetown.edu
Tue Feb 18 20:14:44 EST 2020
This is an automated email from the git hooks/post-receive script.
putmanb pushed a commit to branch master
in repository java-opensaml.
View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=91f31431a04838a0dfe6c5099fa827a95ba9751e
commit 91f31431a04838a0dfe6c5099fa827a95ba9751e
Author: Brent Putman <putmanb at georgetown.edu>
AuthorDate: Tue Feb 18 18:55:49 2020 -0500
IDP-1397: Removal of deprecated features
---
opensaml-security-api/pom.xml | 4 ++++
.../src/main/java/org/opensaml/security/x509/X509Support.java | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/opensaml-security-api/pom.xml b/opensaml-security-api/pom.xml
index 5776fc7..acdf31f 100644
--- a/opensaml-security-api/pom.xml
+++ b/opensaml-security-api/pom.xml
@@ -58,6 +58,10 @@
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.bouncycastle</groupId>
+ <artifactId>bcpkix-jdk15on</artifactId>
+ </dependency>
<dependency>
<groupId>org.springframework</groupId>
diff --git a/opensaml-security-api/src/main/java/org/opensaml/security/x509/X509Support.java b/opensaml-security-api/src/main/java/org/opensaml/security/x509/X509Support.java
index 4cd5f14..4512f5e 100644
--- a/opensaml-security-api/src/main/java/org/opensaml/security/x509/X509Support.java
+++ b/opensaml-security-api/src/main/java/org/opensaml/security/x509/X509Support.java
@@ -53,7 +53,7 @@ import org.bouncycastle.asn1.ASN1Primitive;
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.x509.GeneralName;
import org.bouncycastle.asn1.x509.GeneralNames;
-import org.bouncycastle.x509.extension.X509ExtensionUtil;
+import org.bouncycastle.cert.jcajce.JcaX509ExtensionUtils;
import org.cryptacular.EncodingException;
import org.cryptacular.util.CertUtil;
import org.cryptacular.util.CodecUtil;
@@ -255,7 +255,7 @@ public class X509Support {
}
try {
- final ASN1Primitive ski = X509ExtensionUtil.fromExtensionValue(derValue);
+ final ASN1Primitive ski = JcaX509ExtensionUtils.parseExtensionValue(derValue);
return ((DEROctetString) ski).getOctets();
} catch (final IOException e) {
getLogger().error("Unable to extract subject key identifier from certificate: ASN.1 parsing failed: " + e);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list