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

Method shouldGetIssuer

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

Source from the content-addressed store, hash-verified

223 }
224
225 @Test
226 public void shouldGetIssuer() {
227 String token = "eyJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJKb2huIERvZSJ9.SgXosfRR_IwCgHq5lF3tlM-JHtpucWCRSaVuoHTbWbQ";
228 DecodedJWT jwt = JWT.require(Algorithm.HMAC256("secret"))
229 .build()
230 .verify(token);
231
232 assertThat(jwt, is(notNullValue()));
233 assertThat(jwt.getIssuer(), is("John Doe"));
234 }
235
236 @Test
237 public void shouldGetSubject() {

Callers

nothing calls this directly

Calls 5

requireMethod · 0.95
HMAC256Method · 0.95
verifyMethod · 0.65
buildMethod · 0.65
getIssuerMethod · 0.65

Tested by

no test coverage detected