@Test public void setAudience_withAdditionalClaims_shouldResultInAdditionalClaimsPresentinAud() { JwtClaims claims = new JwtClaims(); Client client = new Client(); client.setClientId("clientId"); client.getAttributes().setAdditionalAudience(Lists.newArrayList("aud1", "aud2")); Audience.setAudience(claims, client); assertEquals(claims.getClaim("aud"), Lists.newArrayList("clientId", "aud1", "aud2")); }
public static void setAudience(JwtClaims claims, Client client) { if (claims == null || client == null) { return; } claims.addAudience(client.getClientId()); client.getAttributes().getAdditionalAudience().forEach(claims::addAudience); }
Audience { public static void setAudience(JwtClaims claims, Client client) { if (claims == null || client == null) { return; } claims.addAudience(client.getClientId()); client.getAttributes().getAdditionalAudience().forEach(claims::addAudience); } }
Audience { public static void setAudience(JwtClaims claims, Client client) { if (claims == null || client == null) { return; } claims.addAudience(client.getClientId()); client.getAttributes().getAdditionalAudience().forEach(claims::addAudience); } private  Audience(); }
Audience { public static void setAudience(JwtClaims claims, Client client) { if (claims == null || client == null) { return; } claims.addAudience(client.getClientId()); client.getAttributes().getAdditionalAudience().forEach(claims::addAudience); } private  Audience(); static void setAudience(JwtClaims claims, Client client); }
Audience { public static void setAudience(JwtClaims claims, Client client) { if (claims == null || client == null) { return; } claims.addAudience(client.getClientId()); client.getAttributes().getAdditionalAudience().forEach(claims::addAudience); } private  Audience(); static void setAudience(JwtClaims claims, Client client);  }