Class AzureActiveDirectoryValidation
java.lang.Object
com.azure.resourcemanager.appcontainers.models.AzureActiveDirectoryValidation
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AzureActiveDirectoryValidation>
public final class AzureActiveDirectoryValidation
extends Object
implements com.azure.json.JsonSerializable<AzureActiveDirectoryValidation>
The configuration settings of the Azure Active Directory token validation flow.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AzureActiveDirectoryValidation class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.Get the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureActiveDirectoryValidation from the JsonReader.Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAllowedAudiences
(List<String> allowedAudiences) Set the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.withDefaultAuthorizationPolicy
(DefaultAuthorizationPolicy defaultAuthorizationPolicy) Set the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.withJwtClaimChecks
(JwtClaimChecks jwtClaimChecks) Set the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.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
-
AzureActiveDirectoryValidation
public AzureActiveDirectoryValidation()Creates an instance of AzureActiveDirectoryValidation class.
-
-
Method Details
-
jwtClaimChecks
Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.- Returns:
- the jwtClaimChecks value.
-
withJwtClaimChecks
Set the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.- Parameters:
jwtClaimChecks
- the jwtClaimChecks value to set.- Returns:
- the AzureActiveDirectoryValidation object itself.
-
allowedAudiences
Get the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.- Returns:
- the allowedAudiences value.
-
withAllowedAudiences
Set the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.- Parameters:
allowedAudiences
- the allowedAudiences value to set.- Returns:
- the AzureActiveDirectoryValidation object itself.
-
defaultAuthorizationPolicy
Get the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.- Returns:
- the defaultAuthorizationPolicy value.
-
withDefaultAuthorizationPolicy
public AzureActiveDirectoryValidation withDefaultAuthorizationPolicy(DefaultAuthorizationPolicy defaultAuthorizationPolicy) Set the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.- Parameters:
defaultAuthorizationPolicy
- the defaultAuthorizationPolicy value to set.- Returns:
- the AzureActiveDirectoryValidation 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<AzureActiveDirectoryValidation>
- Throws:
IOException
-
fromJson
public static AzureActiveDirectoryValidation fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AzureActiveDirectoryValidation from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AzureActiveDirectoryValidation 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 AzureActiveDirectoryValidation.
-