public final boolean verifyAudience(Collection<String> trustedClientIds) {
    Collection<String> audience = getPayload().getAudienceAsList();
    if (audience.isEmpty()) {
      return false;
    }
    return trustedClientIds.containsAll(audience);
  }
public final boolean verifyAudience ( Collection < String > trustedClientIds ) { Collection < String > audience = getPayload ( ) . getAudienceAsList ( ) ; if ( audience . isEmpty ( ) ) { return false ; } return trustedClientIds . containsAll ( audience ) ; }
Returns whether the audience in the payload contains only client IDs that are trusted as
specified in step 2 of <a
href="http://openid.net/specs/openid-connect-basic-1_0-27.html#id.token.validation">ID Token
Validation</a>.

@param trustedClientIds list of trusted client IDs