@Test public void decodes_padding_agnostic_as_expected() throws IOException { assertArrayEquals(data, Base64UrlSafe.decodePaddingAgnostic(encoded)); }
public static byte[] decodePaddingAgnostic(String s) throws IOException { switch (s.length() % 4) { case 1: case 3: s = s + "="; break; case 2: s = s + "=="; break; } return decode(s); }
Base64UrlSafe { public static byte[] decodePaddingAgnostic(String s) throws IOException { switch (s.length() % 4) { case 1: case 3: s = s + "="; break; case 2: s = s + "=="; break; } return decode(s); } }
Base64UrlSafe { public static byte[] decodePaddingAgnostic(String s) throws IOException { switch (s.length() % 4) { case 1: case 3: s = s + "="; break; case 2: s = s + "=="; break; } return decode(s); } private  Base64UrlSafe(); }
Base64UrlSafe { public static byte[] decodePaddingAgnostic(String s) throws IOException { switch (s.length() % 4) { case 1: case 3: s = s + "="; break; case 2: s = s + "=="; break; } return decode(s); } private  Base64UrlSafe(); static byte[] decode(String s); static byte[] decodePaddingAgnostic(String s); static String encodeBytes(byte[] source); static String encodeBytesWithoutPadding(byte[] source); }
Base64UrlSafe { public static byte[] decodePaddingAgnostic(String s) throws IOException { switch (s.length() % 4) { case 1: case 3: s = s + "="; break; case 2: s = s + "=="; break; } return decode(s); } private  Base64UrlSafe(); static byte[] decode(String s); static byte[] decodePaddingAgnostic(String s); static String encodeBytes(byte[] source); static String encodeBytesWithoutPadding(byte[] source);  }