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 Summary
ConstructorsConstructorDescriptionCreates an instance of AllowedAudiencesValidation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedAudiences property: The configuration settings of the allowed list of audiences from which to validate the JWT token.static AllowedAudiencesValidation
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AllowedAudiencesValidation from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAllowedAudiences
(List<String> allowedAudiences) Set the allowedAudiences property: The configuration settings of the allowed list of audiences from which to validate the JWT token.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AllowedAudiencesValidation
public AllowedAudiencesValidation()Creates an instance of AllowedAudiencesValidation class.
-
-
Method Details
-
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
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
- Specified by:
toJson
in interfacecom.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.
-