次の方法で共有


CustomJwtAuthenticationManagedIdentity Class

  • java.lang.Object
    • com.azure.resourcemanager.eventgrid.models.CustomJwtAuthenticationManagedIdentity

Implements

public final class CustomJwtAuthenticationManagedIdentity
implements JsonSerializable<CustomJwtAuthenticationManagedIdentity>

The identity information for retrieving the certificate for custom JWT authentication.

Constructor Summary

Constructor Description
CustomJwtAuthenticationManagedIdentity()

Creates an instance of CustomJwtAuthenticationManagedIdentity class.

Method Summary

Modifier and Type Method and Description
static CustomJwtAuthenticationManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomJwtAuthenticationManagedIdentity from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
CustomJwtAuthenticationManagedIdentityType type()

Get the type property: The type of managed identity used.

String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

void validate()

Validates the instance.

CustomJwtAuthenticationManagedIdentity withType(CustomJwtAuthenticationManagedIdentityType type)

Set the type property: The type of managed identity used.

CustomJwtAuthenticationManagedIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Methods inherited from java.lang.Object

Constructor Details

CustomJwtAuthenticationManagedIdentity

public CustomJwtAuthenticationManagedIdentity()

Creates an instance of CustomJwtAuthenticationManagedIdentity class.

Method Details

fromJson

public static CustomJwtAuthenticationManagedIdentity fromJson(JsonReader jsonReader)

Reads an instance of CustomJwtAuthenticationManagedIdentity from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CustomJwtAuthenticationManagedIdentity if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public CustomJwtAuthenticationManagedIdentityType type()

Get the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Returns:

the type value.

userAssignedIdentity

public String userAssignedIdentity()

Get the userAssignedIdentity property: The user identity associated with the resource.

Returns:

the userAssignedIdentity value.

validate

public void validate()

Validates the instance.

withType

public CustomJwtAuthenticationManagedIdentity withType(CustomJwtAuthenticationManagedIdentityType type)

Set the type property: The type of managed identity used. Can be either 'SystemAssigned' or 'UserAssigned'.

Parameters:

type - the type value to set.

Returns:

the CustomJwtAuthenticationManagedIdentity object itself.

withUserAssignedIdentity

public CustomJwtAuthenticationManagedIdentity withUserAssignedIdentity(String userAssignedIdentity)

Set the userAssignedIdentity property: The user identity associated with the resource.

Parameters:

userAssignedIdentity - the userAssignedIdentity value to set.

Returns:

the CustomJwtAuthenticationManagedIdentity object itself.

Applies to