File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
gamutils/src/main/java/com/genexus/gam Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments