@Test public void getKeyId_success() throws Exception { JSONObject header = new JSONObject(); header.put(JwtNames.HEADER_KEY_ID, "123"); Jwt token = new Jwt(header, new JSONObject(), Clock.systemUTC(), Duration.ZERO); assertThat(token.getKeyId()).isEqualTo("123"); }
public String getKeyId() throws JwtExpiredException, JwtNotBeforeException { return getHeader(JwtNames.HEADER_KEY_ID); }
Jwt { public String getKeyId() throws JwtExpiredException, JwtNotBeforeException { return getHeader(JwtNames.HEADER_KEY_ID); } }
Jwt { public String getKeyId() throws JwtExpiredException, JwtNotBeforeException { return getHeader(JwtNames.HEADER_KEY_ID); } Jwt(JSONObject header, JSONObject payload, Clock clock, Duration clockSkew); }
Jwt { public String getKeyId() throws JwtExpiredException, JwtNotBeforeException { return getHeader(JwtNames.HEADER_KEY_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 getKeyId() throws JwtExpiredException, JwtNotBeforeException { return getHeader(JwtNames.HEADER_KEY_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();  }