private static boolean jwtHasAudienceClaim(JwtClaimsSet jwtClaims) throws AuthLoginException {
  List<String> audienceClaim=jwtClaims.getAudience();
  return (audienceClaim != null && !audienceClaim.isEmpty());
}

private static boolean jwtHasAudienceClaim ( JwtClaimsSet jwtClaims ) throws AuthLoginException { List < String > audienceClaim = jwtClaims . getAudience ( ) ; return ( audienceClaim != null && ! audienceClaim . isEmpty ( ) ) ; }
check if the token has an authorized party ( " azp " ) entry .
