MCPcopy Index your code
hub / github.com/auth0/java-jwt / shouldGetType

Method shouldGetType

lib/src/test/java/com/auth0/jwt/JWTTest.java:343–352  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 5

requireMethod · 0.95
HMAC256Method · 0.95
verifyMethod · 0.65
buildMethod · 0.65
getTypeMethod · 0.65

Tested by

no test coverage detected