@Test void shouldDecodeToByteArray() { byte[] bytes = Base64.decodeBytes("AQIDBAUGBwg="); assertArrayEquals(new byte[] {1, 2, 3, 4, 5, 6, 7, 8}, bytes); }
public static byte[] decodeBytes(String b64) { requireNonNull(b64); return java.util.Base64.getDecoder().decode(b64.getBytes(UTF_8)); }
Base64 { public static byte[] decodeBytes(String b64) { requireNonNull(b64); return java.util.Base64.getDecoder().decode(b64.getBytes(UTF_8)); } }
Base64 { public static byte[] decodeBytes(String b64) { requireNonNull(b64); return java.util.Base64.getDecoder().decode(b64.getBytes(UTF_8)); } private  Base64(); }
Base64 { public static byte[] decodeBytes(String b64) { requireNonNull(b64); return java.util.Base64.getDecoder().decode(b64.getBytes(UTF_8)); } private  Base64(); static String encodeBytes(byte[] bytes); static String encode(Bytes bytes); static byte[] decodeBytes(String b64); static Bytes decode(String b64); }
Base64 { public static byte[] decodeBytes(String b64) { requireNonNull(b64); return java.util.Base64.getDecoder().decode(b64.getBytes(UTF_8)); } private  Base64(); static String encodeBytes(byte[] bytes); static String encode(Bytes bytes); static byte[] decodeBytes(String b64); static Bytes decode(String b64);  }