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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedClientApplications property: The list of the allowed client applications.Get the allowedGroups property: The list of the allowed groups.static JwtClaimChecksfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JwtClaimChecks from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllowedClientApplications(List<String> allowedClientApplications) Set the allowedClientApplications property: The list of the allowed client applications.withAllowedGroups(List<String> allowedGroups) Set the allowedGroups property: The list of the allowed groups.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JwtClaimChecks
public JwtClaimChecks()Creates an instance of JwtClaimChecks class.
-
-
Method Details
-
allowedGroups
Get the allowedGroups property: The list of the allowed groups.- Returns:
- the allowedGroups value.
-
withAllowedGroups
Set the allowedGroups property: The list of the allowed groups.- Parameters:
allowedGroups- the allowedGroups value to set.- Returns:
- the JwtClaimChecks object itself.
-
allowedClientApplications
Get the allowedClientApplications property: The list of the allowed client applications.- Returns:
- the allowedClientApplications value.
-
withAllowedClientApplications
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<JwtClaimChecks>- Throws:
IOException
-
fromJson
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.
-