@Test public void getJwtId_success() throws Exception { JSONObject payload = new JSONObject(); payload.put(JwtNames.CLAIM_JWT_ID, "foo"); Jwt token = new Jwt(new JSONObject(), payload, Clock.systemUTC(), Duration.ZERO); assertThat(token.getJwtId()).isEqualTo("foo"); }
public String getJwtId() throws JwtExpiredException, JwtNotBeforeException { return (String) getClaim(JwtNames.CLAIM_JWT_ID); }
Jwt { public String getJwtId() throws JwtExpiredException, JwtNotBeforeException { return (String) getClaim(JwtNames.CLAIM_JWT_ID); } }
Jwt { public String getJwtId() throws JwtExpiredException, JwtNotBeforeException { return (String) getClaim(JwtNames.CLAIM_JWT_ID); } Jwt(JSONObject header, JSONObject payload, Clock clock, Duration clockSkew); }
Jwt { public String getJwtId() throws JwtExpiredException, JwtNotBeforeException { return (String) getClaim(JwtNames.CLAIM_JWT_ID); } Jwt(JSONObject header, JSONObject payload, Clock clock, Duration clockSkew); String getIssuer(); String getSubject(); List<String> getAudiences(); String getJwtId(); Instant getExpiration(); Instant getNotBefore(); Instant getIssuedAt(); Object getClaim(String name); String getType(); String getContentType(); String getAlgorithm(); String getKeyId(); }
Jwt { public String getJwtId() throws JwtExpiredException, JwtNotBeforeException { return (String) getClaim(JwtNames.CLAIM_JWT_ID); } Jwt(JSONObject header, JSONObject payload, Clock clock, Duration clockSkew); String getIssuer(); String getSubject(); List<String> getAudiences(); String getJwtId(); Instant getExpiration(); Instant getNotBefore(); Instant getIssuedAt(); Object getClaim(String name); String getType(); String getContentType(); String getAlgorithm(); String getKeyId();  }