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

Method shouldGetSignature

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

Source from the content-addressed store, hash-verified

212 }
213
214 @Test
215 public void shouldGetSignature() {
216 String token = "eyJhbGciOiJIUzI1NiJ9.e30.XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ";
217 DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
218 .build()
219 .verify(token);
220
221 assertThat(jwt, is(notNullValue()));
222 assertThat(jwt.getSignature(), is("XmNK3GpH3Ys_7wsYBfq4C3M6goz71I7dTgUkuIa5lyQ"));
223 }
224
225 @Test
226 public void shouldGetIssuer() {

Callers

nothing calls this directly

Calls 5

requireMethod · 0.95
HMAC256Method · 0.95
getSignatureMethod · 0.95
verifyMethod · 0.65
buildMethod · 0.65

Tested by

no test coverage detected