MCPcopy Index your code
hub / github.com/ccxt/ccxt / Base64ToBase64Url

Method Base64ToBase64Url

java/lib/src/main/java/io/github/ccxt/base/Crypto.java:89–92  ·  view source on GitHub ↗
(String base64, boolean stripPadding)

Source from the content-addressed store, hash-verified

87 }
88
89 public static String Base64ToBase64Url(String base64, boolean stripPadding) {
90 String s = base64.replace('+', '-').replace('/', '_');
91 return stripPadding ? s.replaceAll("=+$", "") : s;
92 }
93
94 public static String Base64urlEncode(Object value) {
95 final String b64 = (value instanceof byte[])

Callers 2

Base64urlEncodeMethod · 0.95
JwtMethod · 0.95

Calls 2

replaceMethod · 0.80
replaceAllMethod · 0.80

Tested by

no test coverage detected