()
| 234 | } |
| 235 | |
| 236 | @Test |
| 237 | public void shouldGetSubject() { |
| 238 | String token = "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJUb2szbnMifQ.RudAxkslimoOY3BLl2Ghny3BrUKu9I1ZrXzCZGDJtNs"; |
| 239 | DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret")) |
| 240 | .build() |
| 241 | .verify(token); |
| 242 | |
| 243 | assertThat(jwt, is(notNullValue())); |
| 244 | assertThat(jwt.getSubject(), is("Tok3ns")); |
| 245 | } |
| 246 | |
| 247 | @Test |
| 248 | public void shouldGetArrayAudience() { |
nothing calls this directly
no test coverage detected