@Test public void addAudience_success() throws Exception { ToBeSignedJwt token = new ToBeSignedJwt.Builder().addAudience("foo").build(); JSONArray audiences = (JSONArray) token.getClaim(JwtNames.CLAIM_AUDIENCE); assertThat(audiences.getString(0)).isEqualTo("foo"); }
Object getClaim(String name) { try { return payload.get(name); } catch (JSONException ex) { return null; } }
ToBeSignedJwt { Object getClaim(String name) { try { return payload.get(name); } catch (JSONException ex) { return null; } } }
ToBeSignedJwt { Object getClaim(String name) { try { return payload.get(name); } catch (JSONException ex) { return null; } } private  ToBeSignedJwt(Builder builder); }
ToBeSignedJwt { Object getClaim(String name) { try { return payload.get(name); } catch (JSONException ex) { return null; } } private  ToBeSignedJwt(Builder builder);  }
ToBeSignedJwt { Object getClaim(String name) { try { return payload.get(name); } catch (JSONException ex) { return null; } } private  ToBeSignedJwt(Builder builder);   }