Compartilhar via


JwtClaimChecks Class

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

Implements

public final class JwtClaimChecks
implements JsonSerializable<JwtClaimChecks>

The configuration settings of the checks that should be made while validating the JWT Claims.

Constructor Summary

Constructor Description
JwtClaimChecks()

Creates an instance of JwtClaimChecks class.

Method Summary

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

Get the allowedClientApplications property: The list of the allowed client applications.

List<String> allowedGroups()

Get the allowedGroups property: The list of the allowed groups.

static JwtClaimChecks fromJson(JsonReader jsonReader)

Reads an instance of JwtClaimChecks from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

JwtClaimChecks withAllowedClientApplications(List<String> allowedClientApplications)

Set the allowedClientApplications property: The list of the allowed client applications.

JwtClaimChecks withAllowedGroups(List<String> allowedGroups)

Set the allowedGroups property: The list of the allowed groups.

Methods inherited from java.lang.Object

Constructor Details

JwtClaimChecks

public JwtClaimChecks()

Creates an instance of JwtClaimChecks class.

Method Details

allowedClientApplications

public List allowedClientApplications()

Get the allowedClientApplications property: The list of the allowed client applications.

Returns:

the allowedClientApplications value.

allowedGroups

public List allowedGroups()

Get the allowedGroups property: The list of the allowed groups.

Returns:

the allowedGroups value.

fromJson

public static JwtClaimChecks fromJson(JsonReader jsonReader)

Reads an instance of JwtClaimChecks from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAllowedClientApplications

public JwtClaimChecks withAllowedClientApplications(List allowedClientApplications)

Set the allowedClientApplications property: The list of the allowed client applications.

Parameters:

allowedClientApplications - the allowedClientApplications value to set.

Returns:

the JwtClaimChecks object itself.

withAllowedGroups

public JwtClaimChecks withAllowedGroups(List allowedGroups)

Set the allowedGroups property: The list of the allowed groups.

Parameters:

allowedGroups - the allowedGroups value to set.

Returns:

the JwtClaimChecks object itself.

Applies to