Class AllowedAudiencesValidation

java.lang.Object
com.azure.resourcemanager.appcontainers.models.AllowedAudiencesValidation
All Implemented Interfaces:
com.azure.json.JsonSerializable<AllowedAudiencesValidation>

public final class AllowedAudiencesValidation extends Object implements com.azure.json.JsonSerializable<AllowedAudiencesValidation>
The configuration settings of the Allowed Audiences validation flow.
  • Constructor Details

    • AllowedAudiencesValidation

      public AllowedAudiencesValidation()
      Creates an instance of AllowedAudiencesValidation class.
  • Method Details

    • allowedAudiences

      public List<String> allowedAudiences()
      Get the allowedAudiences property: The configuration settings of the allowed list of audiences from which to validate the JWT token.
      Returns:
      the allowedAudiences value.
    • withAllowedAudiences

      public AllowedAudiencesValidation withAllowedAudiences(List<String> allowedAudiences)
      Set the allowedAudiences property: The configuration settings of the allowed list of audiences from which to validate the JWT token.
      Parameters:
      allowedAudiences - the allowedAudiences value to set.
      Returns:
      the AllowedAudiencesValidation object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AllowedAudiencesValidation>
      Throws:
      IOException
    • fromJson

      public static AllowedAudiencesValidation fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AllowedAudiencesValidation from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AllowedAudiencesValidation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the AllowedAudiencesValidation.