Skip to content

Commit 66b8125

Browse files
sgramponeBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:gamutils_eo' into beta
1 parent 271702d commit 66b8125

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

gamutils/src/main/java/com/genexus/gam/GamUtilsEO.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,7 @@ public static String base64ToBase64Url(String base64) {
9393

9494
public static String fromBase64Url(String base64) { return Encoding.fromBase64Url(base64); }
9595

96+
public static String base64ToHexa(String base64) { return Encoding.base64ToHexa(base64); }
97+
9698
/********EXTERNAL OBJECT PUBLIC METHODS - END ********/
9799
}

gamutils/src/main/java/com/genexus/gam/utils/Encoding.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,16 @@ public static String fromBase64Url(String base64Url)
5959
return "";
6060
}
6161
}
62+
63+
public static String base64ToHexa(String base64)
64+
{
65+
logger.debug("base64ToHexa");
66+
try{
67+
return Hex.toHexString(Base64.decode(base64));
68+
}catch (Exception e)
69+
{
70+
logger.error("base64ToHexa", e);
71+
return "";
72+
}
73+
}
6274
}

0 commit comments

Comments
 (0)