Partager via


OpenAuthenticationAccessPolicy Class

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

Implements

public final class OpenAuthenticationAccessPolicy
implements JsonSerializable<OpenAuthenticationAccessPolicy>

Open authentication access policy defined by user.

Constructor Summary

Constructor Description
OpenAuthenticationAccessPolicy()

Creates an instance of OpenAuthenticationAccessPolicy class.

Method Summary

Modifier and Type Method and Description
List<OpenAuthenticationPolicyClaim> claims()

Get the claims property: The access policy claims.

static OpenAuthenticationAccessPolicy fromJson(JsonReader jsonReader)

Reads an instance of OpenAuthenticationAccessPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
OpenAuthenticationProviderType type()

Get the type property: Type of provider for OAuth.

void validate()

Validates the instance.

OpenAuthenticationAccessPolicy withClaims(List<OpenAuthenticationPolicyClaim> claims)

Set the claims property: The access policy claims.

OpenAuthenticationAccessPolicy withType(OpenAuthenticationProviderType type)

Set the type property: Type of provider for OAuth.

Methods inherited from java.lang.Object

Constructor Details

OpenAuthenticationAccessPolicy

public OpenAuthenticationAccessPolicy()

Creates an instance of OpenAuthenticationAccessPolicy class.

Method Details

claims

public List claims()

Get the claims property: The access policy claims.

Returns:

the claims value.

fromJson

public static OpenAuthenticationAccessPolicy fromJson(JsonReader jsonReader)

Reads an instance of OpenAuthenticationAccessPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public OpenAuthenticationProviderType type()

Get the type property: Type of provider for OAuth.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withClaims

public OpenAuthenticationAccessPolicy withClaims(List claims)

Set the claims property: The access policy claims.

Parameters:

claims - the claims value to set.

Returns:

the OpenAuthenticationAccessPolicy object itself.

withType

public OpenAuthenticationAccessPolicy withType(OpenAuthenticationProviderType type)

Set the type property: Type of provider for OAuth.

Parameters:

type - the type value to set.

Returns:

the OpenAuthenticationAccessPolicy object itself.

Applies to