[java-shib-attribute] branch main updated: Switch to HexSupport class.
Codeberg
noreply at shibboleth.net
Thu Oct 22 16:17:24 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-shib-attribute.
View the commit online:
https://codeberg.org/Shibboleth/java-shib-attribute/commit/359fd714aaf3cfdeb717a41b4604de21068f5c45
The following commit(s) were added to refs/heads/main by this push:
new 359fd714a Switch to HexSupport class.
359fd714a is described below
commit 359fd714aaf3cfdeb717a41b4604de21068f5c45
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Thu Oct 22 12:17:13 2026 -0400
Switch to HexSupport class.
---
.../main/java/net/shibboleth/idp/attribute/ByteAttributeValue.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/shib-attribute-api/src/main/java/net/shibboleth/idp/attribute/ByteAttributeValue.java b/shib-attribute-api/src/main/java/net/shibboleth/idp/attribute/ByteAttributeValue.java
index 1f69a47c8..4423719b4 100644
--- a/shib-attribute-api/src/main/java/net/shibboleth/idp/attribute/ByteAttributeValue.java
+++ b/shib-attribute-api/src/main/java/net/shibboleth/idp/attribute/ByteAttributeValue.java
@@ -19,14 +19,13 @@ import java.util.Arrays;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
-import org.apache.commons.codec.binary.Hex;
-
import com.google.common.base.MoreObjects;
import net.shibboleth.shared.annotation.ParameterName;
import net.shibboleth.shared.annotation.constraint.NotEmpty;
import net.shibboleth.shared.codec.Base64Support;
import net.shibboleth.shared.codec.EncodingException;
+import net.shibboleth.shared.codec.HexSupport;
import net.shibboleth.shared.logic.Constraint;
/** A <code>byte[]</code> value for an {@link IdPAttribute}. */
@@ -68,9 +67,8 @@ public final class ByteAttributeValue implements IdPAttributeValue {
*
* @return a hex-encoded string
*/
- @SuppressWarnings("null")
@Nonnull public String toHex() {
- final String result = Hex.encodeHexString(value);
+ final String result = HexSupport.encodeLowerCase(value);
assert result != null;
return result;
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list