[java-opensaml] branch master updated: OSJ-287 - Get off Santuario Base64 encoder class
Scott Cantor
cantor.2 at osu.edu
Thu Oct 17 19:26:35 EDT 2019
This is an automated email from the git hooks/post-receive script.
scantor 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=a1bf518e4810a7f2317e1fe1bb88b59e58d07b63
The following commit(s) were added to refs/heads/master by this push:
new a1bf518 OSJ-287 - Get off Santuario Base64 encoder class
a1bf518 is described below
commit a1bf518e4810a7f2317e1fe1bb88b59e58d07b63
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Oct 17 19:26:31 2019 -0400
OSJ-287 - Get off Santuario Base64 encoder class
https://issues.shibboleth.net/jira/browse/OSJ-287
---
.../src/main/java/org/opensaml/xmlsec/keyinfo/KeyInfoSupport.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/opensaml-xmlsec-api/src/main/java/org/opensaml/xmlsec/keyinfo/KeyInfoSupport.java b/opensaml-xmlsec-api/src/main/java/org/opensaml/xmlsec/keyinfo/KeyInfoSupport.java
index 86568b9..19ef491 100644
--- a/opensaml-xmlsec-api/src/main/java/org/opensaml/xmlsec/keyinfo/KeyInfoSupport.java
+++ b/opensaml-xmlsec-api/src/main/java/org/opensaml/xmlsec/keyinfo/KeyInfoSupport.java
@@ -47,6 +47,7 @@ import javax.annotation.Nullable;
import net.shibboleth.utilities.java.support.codec.Base64Support;
import net.shibboleth.utilities.java.support.logic.Constraint;
+import org.apache.xml.security.utils.XMLUtils;
import org.opensaml.core.xml.XMLObjectBuilder;
import org.opensaml.core.xml.XMLObjectBuilderFactory;
import org.opensaml.core.xml.config.XMLObjectProviderRegistrySupport;
@@ -766,7 +767,7 @@ public class KeyInfoSupport {
Constraint.isNotNull(bigInt, "BigInteger cannot be null");
// This code is really complicated, for now just use the Apache xmlsec lib code directly.
- final byte[] bigIntBytes = org.apache.xml.security.utils.Base64.encode(bigInt, bigInt.bitLength());
+ final byte[] bigIntBytes = XMLUtils.getBytes(bigInt, bigInt.bitLength());
return Base64Support.encode(bigIntBytes, Base64Support.UNCHUNKED);
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list