Class JwtClaimChecks

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

public final class JwtClaimChecks extends Object implements com.azure.json.JsonSerializable<JwtClaimChecks>
The configuration settings of the checks that should be made while validating the JWT Claims.
  • Constructor Details

    • JwtClaimChecks

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

    • allowedGroups

      public List<String> allowedGroups()
      Get the allowedGroups property: The list of the allowed groups.
      Returns:
      the allowedGroups value.
    • withAllowedGroups

      public JwtClaimChecks withAllowedGroups(List<String> allowedGroups)
      Set the allowedGroups property: The list of the allowed groups.
      Parameters:
      allowedGroups - the allowedGroups value to set.
      Returns:
      the JwtClaimChecks object itself.
    • allowedClientApplications

      public List<String> allowedClientApplications()
      Get the allowedClientApplications property: The list of the allowed client applications.
      Returns:
      the allowedClientApplications value.
    • withAllowedClientApplications

      public JwtClaimChecks withAllowedClientApplications(List<String> allowedClientApplications)
      Set the allowedClientApplications property: The list of the allowed client applications.
      Parameters:
      allowedClientApplications - the allowedClientApplications value to set.
      Returns:
      the JwtClaimChecks 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<JwtClaimChecks>
      Throws:
      IOException
    • fromJson

      public static JwtClaimChecks fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JwtClaimChecks from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JwtClaimChecks 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 JwtClaimChecks.