Class ApplicationGatewayEntraJwtValidationConfig
java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.network.models.ApplicationGatewayEntraJwtValidationConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.SubResource>
public final class ApplicationGatewayEntraJwtValidationConfig
extends com.azure.core.management.SubResource
Entra JWT Validation Configuration of an application gateway.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ApplicationGatewayEntraJwtValidationConfig class. -
Method Summary
Modifier and TypeMethodDescriptionGet the audiences property: List of acceptable audience claims that can be present in the token (aud claim).clientId()Get the clientId property: The Client ID of the Microsoft Entra ID application.etag()Get the etag property: A unique read-only string that changes whenever the resource is updated.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ApplicationGatewayEntraJwtValidationConfig from the JsonReader.name()Get the name property: Name of the entra jwt validation configuration that is unique within an application gateway.Get the provisioningState property: The provisioning state of the entra jwt validation configuration resource.tenantId()Get the tenantId property: The Tenant ID of the Microsoft Entra ID application.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the unAuthorizedRequestAction property: Unauthorized request action.voidvalidate()Validates the instance.withAudiences(List<String> audiences) Set the audiences property: List of acceptable audience claims that can be present in the token (aud claim).withClientId(String clientId) Set the clientId property: The Client ID of the Microsoft Entra ID application.Set the name property: Name of the entra jwt validation configuration that is unique within an application gateway.withTenantId(String tenantId) Set the tenantId property: The Tenant ID of the Microsoft Entra ID application.withUnAuthorizedRequestAction(ApplicationGatewayUnAuthorizedRequestAction unAuthorizedRequestAction) Set the unAuthorizedRequestAction property: Unauthorized request action.Methods inherited from class com.azure.core.management.SubResource
idMethods inherited from class 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
-
ApplicationGatewayEntraJwtValidationConfig
public ApplicationGatewayEntraJwtValidationConfig()Creates an instance of ApplicationGatewayEntraJwtValidationConfig class.
-
-
Method Details
-
name
Get the name property: Name of the entra jwt validation configuration that is unique within an application gateway.- Returns:
- the name value.
-
withName
Set the name property: Name of the entra jwt validation configuration that is unique within an application gateway.- Parameters:
name- the name value to set.- Returns:
- the ApplicationGatewayEntraJwtValidationConfig object itself.
-
etag
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
withId
- Overrides:
withIdin classcom.azure.core.management.SubResource
-
unAuthorizedRequestAction
Get the unAuthorizedRequestAction property: Unauthorized request action.- Returns:
- the unAuthorizedRequestAction value.
-
withUnAuthorizedRequestAction
public ApplicationGatewayEntraJwtValidationConfig withUnAuthorizedRequestAction(ApplicationGatewayUnAuthorizedRequestAction unAuthorizedRequestAction) Set the unAuthorizedRequestAction property: Unauthorized request action.- Parameters:
unAuthorizedRequestAction- the unAuthorizedRequestAction value to set.- Returns:
- the ApplicationGatewayEntraJwtValidationConfig object itself.
-
tenantId
Get the tenantId property: The Tenant ID of the Microsoft Entra ID application.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: The Tenant ID of the Microsoft Entra ID application.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the ApplicationGatewayEntraJwtValidationConfig object itself.
-
clientId
Get the clientId property: The Client ID of the Microsoft Entra ID application.- Returns:
- the clientId value.
-
withClientId
Set the clientId property: The Client ID of the Microsoft Entra ID application.- Parameters:
clientId- the clientId value to set.- Returns:
- the ApplicationGatewayEntraJwtValidationConfig object itself.
-
audiences
-
withAudiences
Set the audiences property: List of acceptable audience claims that can be present in the token (aud claim). A maximum of 5 audiences are permitted.- Parameters:
audiences- the audiences value to set.- Returns:
- the ApplicationGatewayEntraJwtValidationConfig object itself.
-
provisioningState
Get the provisioningState property: The provisioning state of the entra jwt validation configuration resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.SubResource>- Overrides:
toJsonin classcom.azure.core.management.SubResource- Throws:
IOException
-
fromJson
public static ApplicationGatewayEntraJwtValidationConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ApplicationGatewayEntraJwtValidationConfig from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ApplicationGatewayEntraJwtValidationConfig 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 ApplicationGatewayEntraJwtValidationConfig.
-