(Reader r, char[] buf)
| 31 | "exactly 2 period characters, and compact JWEs must contain exactly 4. Found: "; |
| 32 | |
| 33 | private static int read(Reader r, char[] buf) { |
| 34 | try { |
| 35 | return r.read(buf); |
| 36 | } catch (IOException e) { |
| 37 | String msg = "Unable to read compact JWT: " + e.getMessage(); |
| 38 | throw new MalformedJwtException(msg, e); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | @SuppressWarnings("unchecked") |
| 43 | public <T extends TokenizedJwt> T tokenize(Reader reader) { |