In Java we have this code:
byte[] clientPublicKeyBase = Base64.getUrlDecoder().decode(...);
How do I convert this to Apex?
In Java we have this code:
byte[] clientPublicKeyBase = Base64.getUrlDecoder().decode(...);
How do I convert this to Apex?
Base64.getUrlDecoder(): Uses the "URL and Filename safe Base64 Alphabet" as specified in Table 2 of RFC 4648 for encoding and decoding. The encoder does not add any line feed (line separator) character. The decoder rejects data that contains characters outside the base64 alphabet. Have you looked at Table 2 of RFC 4648 and tried implementing? – identigral Jul 15 '22 at 04:07