()
| 341 | } |
| 342 | |
| 343 | @Test |
| 344 | public void shouldGetType() { |
| 345 | String token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.e30.WdFmrzx8b9v_a-r6EHC2PTAaWywgm_8LiP8RBRhYwkI"; |
| 346 | DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret")) |
| 347 | .build() |
| 348 | .verify(token); |
| 349 | |
| 350 | assertThat(jwt, is(notNullValue())); |
| 351 | assertThat(jwt.getType(), is("JWS")); |
| 352 | } |
| 353 | |
| 354 | @Test |
| 355 | public void shouldGetKeyId() { |