Compartilhar via


DefaultAuthorizationPolicy Class

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

Implements

public final class DefaultAuthorizationPolicy
implements JsonSerializable<DefaultAuthorizationPolicy>

The configuration settings of the Azure Active Directory default authorization policy.

Constructor Summary

Constructor Description
DefaultAuthorizationPolicy()

Creates an instance of DefaultAuthorizationPolicy class.

Method Summary

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

Get the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.

AllowedPrincipals allowedPrincipals()

Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.

static DefaultAuthorizationPolicy fromJson(JsonReader jsonReader)

Reads an instance of DefaultAuthorizationPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

DefaultAuthorizationPolicy withAllowedApplications(List<String> allowedApplications)

Set the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.

DefaultAuthorizationPolicy withAllowedPrincipals(AllowedPrincipals allowedPrincipals)

Set the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.

Methods inherited from java.lang.Object

Constructor Details

DefaultAuthorizationPolicy

public DefaultAuthorizationPolicy()

Creates an instance of DefaultAuthorizationPolicy class.

Method Details

allowedApplications

public List allowedApplications()

Get the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.

Returns:

the allowedApplications value.

allowedPrincipals

public AllowedPrincipals allowedPrincipals()

Get the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.

Returns:

the allowedPrincipals value.

fromJson

public static DefaultAuthorizationPolicy fromJson(JsonReader jsonReader)

Reads an instance of DefaultAuthorizationPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DefaultAuthorizationPolicy 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 DefaultAuthorizationPolicy.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedApplications

public DefaultAuthorizationPolicy withAllowedApplications(List allowedApplications)

Set the allowedApplications property: The configuration settings of the Azure Active Directory allowed applications.

Parameters:

allowedApplications - the allowedApplications value to set.

Returns:

the DefaultAuthorizationPolicy object itself.

withAllowedPrincipals

public DefaultAuthorizationPolicy withAllowedPrincipals(AllowedPrincipals allowedPrincipals)

Set the allowedPrincipals property: The configuration settings of the Azure Active Directory allowed principals.

Parameters:

allowedPrincipals - the allowedPrincipals value to set.

Returns:

the DefaultAuthorizationPolicy object itself.

Applies to