public static GoogleAccountCredential usingAudience ( Context context , String audience ) { Preconditions . checkArgument ( audience . length ( ) != 0 ) ; return new GoogleAccountCredential ( context , "audience:" + audience ) ; }
Sets the audience scope to use with Google Cloud Endpoints .