Compartilhar via


AzureActiveDirectoryValidation Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.AzureActiveDirectoryValidation

Implements

public final class AzureActiveDirectoryValidation
implements JsonSerializable<AzureActiveDirectoryValidation>

The configuration settings of the Azure Active Directory token validation flow.

Constructor Summary

Constructor Description
AzureActiveDirectoryValidation()

Creates an instance of AzureActiveDirectoryValidation class.

Method Summary

Modifier and Type Method and Description
List<String> allowedAudiences()

Get the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.

DefaultAuthorizationPolicy defaultAuthorizationPolicy()

Get the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.

static AzureActiveDirectoryValidation fromJson(JsonReader jsonReader)

Reads an instance of AzureActiveDirectoryValidation from the JsonReader.

JwtClaimChecks jwtClaimChecks()

Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AzureActiveDirectoryValidation withAllowedAudiences(List<String> allowedAudiences)

Set the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.

AzureActiveDirectoryValidation withDefaultAuthorizationPolicy(DefaultAuthorizationPolicy defaultAuthorizationPolicy)

Set the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.

AzureActiveDirectoryValidation 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 java.lang.Object

Constructor Details

AzureActiveDirectoryValidation

public AzureActiveDirectoryValidation()

Creates an instance of AzureActiveDirectoryValidation class.

Method Details

allowedAudiences

public List allowedAudiences()

Get the allowedAudiences property: The list of audiences that can make successful authentication/authorization requests.

Returns:

the allowedAudiences value.

defaultAuthorizationPolicy

public DefaultAuthorizationPolicy defaultAuthorizationPolicy()

Get the defaultAuthorizationPolicy property: The configuration settings of the default authorization policy.

Returns:

the defaultAuthorizationPolicy value.

fromJson

public static AzureActiveDirectoryValidation fromJson(JsonReader jsonReader)

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.

jwtClaimChecks

public JwtClaimChecks jwtClaimChecks()

Get the jwtClaimChecks property: The configuration settings of the checks that should be made while validating the JWT Claims.

Returns:

the jwtClaimChecks value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedAudiences

public AzureActiveDirectoryValidation withAllowedAudiences(List allowedAudiences)

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.

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.

withJwtClaimChecks

public AzureActiveDirectoryValidation withJwtClaimChecks(JwtClaimChecks jwtClaimChecks)

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.

Applies to